diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2012-02-09 11:25:48 +0100 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2012-02-09 11:25:48 +0100 |
commit | 218193d38d2cebc72123255f8035fe3fa02d3dc5 (patch) | |
tree | 271e2664ead5f917b6b9b7a67982b0efe8d9e2ff /src/or/geoip.c | |
parent | 4aca55efd2ac627a0311cd5cb00d5ad02e765da2 (diff) | |
download | tor-218193d38d2cebc72123255f8035fe3fa02d3dc5.tar.gz tor-218193d38d2cebc72123255f8035fe3fa02d3dc5.zip |
Add braces around a two-line code block.
Diffstat (limited to 'src/or/geoip.c')
-rw-r--r-- | src/or/geoip.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |