diff options
-rw-r--r-- | src/or/routerparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 78dfe2bf38..4209930e0d 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -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; } |