mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Refrain from closing connection if found one unrecognized address in NETINFO cell
This commit is contained in:
parent
3bec371d04
commit
5b2acbec0e
@ -1809,10 +1809,8 @@ channel_tls_process_netinfo_cell(cell_t *cell, channel_tls_t *chan)
|
|||||||
|
|
||||||
if (tor_addr_from_netinfo_addr(&addr, netinfo_addr) == -1) {
|
if (tor_addr_from_netinfo_addr(&addr, netinfo_addr) == -1) {
|
||||||
log_fn(LOG_PROTOCOL_WARN, LD_OR,
|
log_fn(LOG_PROTOCOL_WARN, LD_OR,
|
||||||
"Bad address in netinfo cell; closing connection.");
|
"Bad address in netinfo cell; Skipping.");
|
||||||
connection_or_close_for_error(chan->conn, 0);
|
continue;
|
||||||
netinfo_cell_free(netinfo_cell);
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
/* A relay can connect from anywhere and be canonical, so
|
/* A relay can connect from anywhere and be canonical, so
|
||||||
* long as it tells you from where it came. This may sound a bit
|
* long as it tells you from where it came. This may sound a bit
|
||||||
|
Loading…
Reference in New Issue
Block a user