mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
addr: Remove BUG() that always triggers
Fix on unreleased code. Logical || in the BUG() made it that it would always trigger the BUG(). Fixes #40034 Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
1a4e475d5d
commit
401b3a8a3c
@ -85,7 +85,7 @@ resolved_addr_get_suggested(int family, tor_addr_t *addr_out)
|
||||
void
|
||||
resolved_addr_set_suggested(const tor_addr_t *addr)
|
||||
{
|
||||
if (BUG(tor_addr_family(addr) != AF_INET ||
|
||||
if (BUG(tor_addr_family(addr) != AF_INET &&
|
||||
tor_addr_family(addr) != AF_INET6)) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user