mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Tweak loop condition
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user