aboutsummaryrefslogtreecommitdiff
path: root/src/feature/relay
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-07-16 09:26:58 -0400
committerDavid Goulet <dgoulet@torproject.org>2020-07-20 14:54:13 -0400
commit0b89eba7d55839c4b746bbe5efd8fe1531592bf7 (patch)
tree8fe93a807ead2fee081d19d00d6ef06eea156945 /src/feature/relay
parenta37a027e61bf96f233bf86dd33fa67890fb3c457 (diff)
downloadtor-0b89eba7d55839c4b746bbe5efd8fe1531592bf7.tar.gz
tor-0b89eba7d55839c4b746bbe5efd8fe1531592bf7.zip
addr: Use false/true with relay_find_addr_to_publish()
Previous development introduced the error of using 0/1 for a boolean parameter. Fix that everywhere Related #40025 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/relay')
-rw-r--r--src/feature/relay/router.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/feature/relay/router.c b/src/feature/relay/router.c
index 2d79a9ba4d..039aeb7343 100644
--- a/src/feature/relay/router.c
+++ b/src/feature/relay/router.c
@@ -2040,8 +2040,10 @@ router_build_fresh_unsigned_routerinfo,(routerinfo_t **ri_out))
/* Find our resolved address both IPv4 and IPv6. In case the address is not
* found, the object is set to an UNSPEC address. */
- bool have_v4 = relay_find_addr_to_publish(options, AF_INET, 0, &ipv4_addr);
- bool have_v6 = relay_find_addr_to_publish(options, AF_INET6, 0, &ipv6_addr);
+ bool have_v4 = relay_find_addr_to_publish(options, AF_INET, false,
+ &ipv4_addr);
+ bool have_v6 = relay_find_addr_to_publish(options, AF_INET6, false,
+ &ipv6_addr);
/* Tor requires a relay to have an IPv4 so bail if we can't find it. */
if (!have_v4) {