mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
addr: Remove a BUG() that can normally occur
Fix on unreleased code. The relay_new_address_suggestion() is called when a NETINFO cell is received thus not only for relay or bridges. Remove the BUG() that made sure only in server mode we could handle the suggested address. Fixes #40032 Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
1a4e475d5d
commit
46b86b22e3
@ -64,8 +64,9 @@ relay_address_new_suggestion(const tor_addr_t *suggested_addr,
|
||||
tor_assert(peer_addr);
|
||||
tor_assert(identity_digest);
|
||||
|
||||
/* This should never be called on a non Tor relay. */
|
||||
if (BUG(!server_mode(options))) {
|
||||
/* Non server should just ignore this suggestion. Clients don't need to
|
||||
* learn their address let alone cache it. */
|
||||
if (!server_mode(options)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user