Tweak loop condition

This commit is contained in:
rl1987 2018-02-21 20:25:24 +01:00 committed by Nick Mathewson
parent 6b6d003f43
commit a28e350cff

View File

@ -1145,7 +1145,7 @@ string_is_valid_hostname(const char *string)
do {
result = (TOR_ISALNUM(*c) || (*c == '-') || (*c == '_'));
c++;
} while (result > 0 && *c);
} while (result && *c);
if (result == 0) {
break;