tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit d24a6b2f75caf7ba6e155d5b21516ce00dd9d30a
parent 088a74aaab84c5598f589fa6d0b6203ca8c666fa
Author: Alexander Færøy <ahf@torproject.org>
Date:   Fri, 12 Feb 2021 15:23:02 +0000

Merge remote-tracking branch 'tor-gitlab/mr/293' into maint-0.4.5

Diffstat:
Msrc/feature/relay/router.c | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/feature/relay/router.c b/src/feature/relay/router.c @@ -2678,9 +2678,13 @@ check_descriptor_ipaddress_changed(time_t now) /* Attempt to discovery the publishable address for the family which will * actively attempt to discover the address if we are configured with a - * port for the family. */ - relay_find_addr_to_publish(get_options(), family, RELAY_FIND_ADDR_NO_FLAG, - &current); + * port for the family. + * + * It is OK to ignore the returned value here since in the failure case, + * that is the address was not found, the current value is set to UNSPEC. + * Add this (void) so Coverity is happy. */ + (void) relay_find_addr_to_publish(get_options(), family, + RELAY_FIND_ADDR_NO_FLAG, &current); /* The "current" address might be UNSPEC meaning it was not discovered nor * found in our current cache. If we had an address before and we have