mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +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
1 changed files with 3 additions and 2 deletions
|
@ -64,8 +64,9 @@ relay_address_new_suggestion(const tor_addr_t *suggested_addr,
|
||||||
tor_assert(peer_addr);
|
tor_assert(peer_addr);
|
||||||
tor_assert(identity_digest);
|
tor_assert(identity_digest);
|
||||||
|
|
||||||
/* This should never be called on a non Tor relay. */
|
/* Non server should just ignore this suggestion. Clients don't need to
|
||||||
if (BUG(!server_mode(options))) {
|
* learn their address let alone cache it. */
|
||||||
|
if (!server_mode(options)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue