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:
David Goulet 2020-07-10 13:09:46 -04:00
parent 1a4e475d5d
commit 401b3a8a3c

View File

@ -85,7 +85,7 @@ resolved_addr_get_suggested(int family, tor_addr_t *addr_out)
void void
resolved_addr_set_suggested(const tor_addr_t *addr) 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)) { tor_addr_family(addr) != AF_INET6)) {
return; return;
} }