dns.mitm: fix wildcardcmp failure case (#1539)

This commit is contained in:
Michael Scire 2021-06-15 16:35:20 -07:00
parent c02f32f1bf
commit 8a6afe7909

View file

@ -36,7 +36,7 @@ namespace ams::mitm::socket::resolver {
if (!*string) {
if (!*pattern) return 1;
if ('*' == *pattern) return 1;
if (!*s) return 0;
if (!s || !*s) return 0;
string = s++;
pattern = w;
continue;