mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 10:12:15 +01:00
Tweak loop condition
This commit is contained in:
parent
6b6d003f43
commit
a28e350cff
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user