diff options
author | David Goulet <dgoulet@torproject.org> | 2021-12-15 09:00:15 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2021-12-15 09:00:15 -0500 |
commit | bf10206e9e23ac0ded2cc9727666696ea25d5636 (patch) | |
tree | b5890fbf39d15f15529b33b1ad8d2d2aa128a590 /src/feature/relay | |
parent | 193781e6ef8b1236bfd51eab344abcb0e914e168 (diff) | |
download | tor-bf10206e9e23ac0ded2cc9727666696ea25d5636.tar.gz tor-bf10206e9e23ac0ded2cc9727666696ea25d5636.zip |
Fix compiler warnings from ubuntu/jammy
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/relay')
-rw-r--r-- | src/feature/relay/selftest.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/feature/relay/selftest.c b/src/feature/relay/selftest.c index 8922d20a19..a791079bd8 100644 --- a/src/feature/relay/selftest.c +++ b/src/feature/relay/selftest.c @@ -254,6 +254,10 @@ router_do_orport_reachability_checks(const routerinfo_t *me, if (ei) { const char *family_name = fmt_af_family(family); const tor_addr_port_t *ap = extend_info_get_orport(ei, family); + if (BUG(!ap)) { + /* Not much we can do here to recover apart from screaming loudly. */ + return; + } log_info(LD_CIRC, "Testing %s of my %s ORPort: %s.", !orport_reachable ? "reachability" : "bandwidth", family_name, fmt_addrport_ap(ap)); |