diff options
author | David Goulet <dgoulet@torproject.org> | 2020-07-10 13:09:46 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2020-07-10 13:09:46 -0400 |
commit | 401b3a8a3c823c6d0642cc323464e05a140f0351 (patch) | |
tree | 1f7043eba0600b2f2904144f3378e54b256fcd54 /src/app/config/resolve_addr.c | |
parent | 1a4e475d5d86b0325914000889d5fd0dde42c2ad (diff) | |
download | tor-401b3a8a3c823c6d0642cc323464e05a140f0351.tar.gz tor-401b3a8a3c823c6d0642cc323464e05a140f0351.zip |
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>
Diffstat (limited to 'src/app/config/resolve_addr.c')
-rw-r--r-- | src/app/config/resolve_addr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/config/resolve_addr.c b/src/app/config/resolve_addr.c index 172f698549..7ec5ae565a 100644 --- a/src/app/config/resolve_addr.c +++ b/src/app/config/resolve_addr.c @@ -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; } |