diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2018-12-16 10:19:37 +0200 |
---|---|---|
committer | rl1987 <rl1987@sdf.lonestar.org> | 2018-12-16 10:19:37 +0200 |
commit | 5b2acbec0e50a1858c43d0cafe9c4696152cde27 (patch) | |
tree | d3d46bb2277a358bdce14fc316385be16878a8a9 /src/core | |
parent | 3bec371d04b291ec0351f01eeafdc842ea2a51d6 (diff) | |
download | tor-5b2acbec0e50a1858c43d0cafe9c4696152cde27.tar.gz tor-5b2acbec0e50a1858c43d0cafe9c4696152cde27.zip |
Refrain from closing connection if found one unrecognized address in NETINFO cell
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/or/channeltls.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/or/channeltls.c b/src/core/or/channeltls.c index 392e78506e..8f407d5e15 100644 --- a/src/core/or/channeltls.c +++ b/src/core/or/channeltls.c @@ -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) { log_fn(LOG_PROTOCOL_WARN, LD_OR, - "Bad address in netinfo cell; closing connection."); - connection_or_close_for_error(chan->conn, 0); - netinfo_cell_free(netinfo_cell); - return; + "Bad address in netinfo cell; Skipping."); + continue; } /* A relay can connect from anywhere and be canonical, so * long as it tells you from where it came. This may sound a bit |