aboutsummaryrefslogtreecommitdiff
path: root/src/feature/client
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/client
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/client')
-rw-r--r--src/feature/client/transports.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/client/transports.c b/src/feature/client/transports.c
index ecc952e2ac..8a0694449a 100644
--- a/src/feature/client/transports.c
+++ b/src/feature/client/transports.c
@@ -1652,10 +1652,10 @@ pt_get_extra_info_descriptor_string(void)
tor_addr_t addr;
/* Attempt to find the IPv4 and then attempt to find the IPv6 if we
* can't find it. */
- bool found = relay_find_addr_to_publish(get_options(), AF_INET, 0,
+ bool found = relay_find_addr_to_publish(get_options(), AF_INET, false,
&addr);
if (!found) {
- found = relay_find_addr_to_publish(get_options(), AF_INET6, 0,
+ found = relay_find_addr_to_publish(get_options(), AF_INET6, false,
&addr);
}
if (!found) {