mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Fix another reversed inet_aton
svn:r4937
This commit is contained in:
@@ -1301,7 +1301,7 @@ networkstatus_parse_from_string(const char *s)
|
||||
goto err;
|
||||
}
|
||||
ns->source_address = tok->args[0]; tok->args[0] = NULL;
|
||||
if (tor_inet_aton(tok->args[1], &in) != 0) {
|
||||
if (tor_inet_aton(tok->args[1], &in) == 0) {
|
||||
log_fn(LOG_WARN, "Error parsing address '%s'", tok->args[1]);
|
||||
goto err;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user