Merge remote-tracking branch 'tor-gitlab/mr/232'

This commit is contained in:
George Kadianakis 2020-12-11 15:56:13 +02:00
commit 04b271af9f

View File

@ -6069,7 +6069,7 @@ port_parse_config(smartlist_t *out,
tor_free(addrtmp); tor_free(addrtmp);
} else { } else {
/* Try parsing integer port before address, because, who knows? /* Try parsing integer port before address, because, who knows?
"9050" might be a valid address. */ * "9050" might be a valid address. */
port = (int) tor_parse_long(addrport, 10, 0, 65535, &ok, NULL); port = (int) tor_parse_long(addrport, 10, 0, 65535, &ok, NULL);
if (ok) { if (ok) {
tor_addr_copy(&addr, &default_addr); tor_addr_copy(&addr, &default_addr);