diff --git a/src/or/geoip.c b/src/or/geoip.c index d3dcc4ff57..a72319d28f 100644 --- a/src/or/geoip.c +++ b/src/or/geoip.c @@ -270,9 +270,10 @@ int geoip_get_country_by_addr(const tor_addr_t *addr) { uint32_t ipaddr; - if (tor_addr_family(addr) != AF_INET) + if (tor_addr_family(addr) != AF_INET) { /*XXXX IP6 support ipv6 geoip.*/ return -1; + } ipaddr = tor_addr_to_ipv4h(addr); return geoip_get_country_by_ip(ipaddr); }