diff options
author | David Goulet <dgoulet@torproject.org> | 2020-07-16 09:26:58 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2020-07-20 14:54:13 -0400 |
commit | 0b89eba7d55839c4b746bbe5efd8fe1531592bf7 (patch) | |
tree | 8fe93a807ead2fee081d19d00d6ef06eea156945 /src/feature/client/transports.c | |
parent | a37a027e61bf96f233bf86dd33fa67890fb3c457 (diff) | |
download | tor-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/transports.c')
-rw-r--r-- | src/feature/client/transports.c | 4 |
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) { |