diff options
Diffstat (limited to 'src/or/routerparse.c')
-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 c514d86e2..78dfe2bf3 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -1212,7 +1212,7 @@ routerstatus_parse_entry_from_string(const char **s, smartlist_t *tokens) goto err; } - if (tor_inet_aton(tok->args[5], &in) != 0) { + if (tor_inet_aton(tok->args[5], &in) == 0) { log_fn(LOG_WARN, "Error parsing address '%s'", tok->args[5]); goto err; } |