mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge remote-tracking branch 'arma/ticket5528'
Conflicts: src/or/router.c src/test/test_dir.c
This commit is contained in:
@@ -1195,8 +1195,7 @@ router_parse_entry_from_string(const char *s, const char *end,
|
||||
log_warn(LD_DIR,"Router nickname is invalid");
|
||||
goto err;
|
||||
}
|
||||
router->address = tor_strdup(tok->args[1]);
|
||||
if (!tor_inet_aton(router->address, &in)) {
|
||||
if (!tor_inet_aton(tok->args[1], &in)) {
|
||||
log_warn(LD_DIR,"Router address is not an IP address.");
|
||||
goto err;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user