diff options
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/config/resolve_addr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app/config/resolve_addr.c b/src/app/config/resolve_addr.c index a153d63974..b37707d2da 100644 --- a/src/app/config/resolve_addr.c +++ b/src/app/config/resolve_addr.c @@ -787,7 +787,8 @@ MOCK_IMPL(bool, is_local_to_resolve_addr, (const tor_addr_t *addr)) { const int family = tor_addr_family(addr); - const tor_addr_t *last_resolved_addr = &last_resolved_addrs[family]; + const tor_addr_t *last_resolved_addr = + &last_resolved_addrs[af_to_idx(family)]; /* Internal address is always local. */ if (tor_addr_is_internal(addr, 0)) { |