Nasty, rare and obscure off-by-one in DNSSEC hostname_cmp().

This commit is contained in:
Simon Kelley
2015-12-20 20:50:05 +00:00
parent d67ecac59d
commit 3e86d316c4

View File

@@ -1394,8 +1394,8 @@ static int hostname_cmp(const char *a, const char *b)
if (sb == b) if (sb == b)
return 1; return 1;
ea = sa--; ea = --sa;
eb = sb--; eb = --sb;
} }
} }