diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-06-05 12:02:47 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-06-05 12:02:47 -0400 |
commit | db2f18b1f92509de04be6cd973f9120e9c7be489 (patch) | |
tree | 778a849271a94fb7b489d9eb66104c8df27f8b5a /src/or/geoip.c | |
parent | 26d9fffae428a186e92ffa53053da76bea519fec (diff) | |
parent | 578a4392e94faaa85ae79dfe1d4e7e93d0700de5 (diff) | |
download | tor-db2f18b1f92509de04be6cd973f9120e9c7be489.tar.gz tor-db2f18b1f92509de04be6cd973f9120e9c7be489.zip |
Merge branch 'maint-0.3.0'
Diffstat (limited to 'src/or/geoip.c')
-rw-r--r-- | src/or/geoip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/geoip.c b/src/or/geoip.c index c76071a152..65d00b8659 100644 --- a/src/or/geoip.c +++ b/src/or/geoip.c @@ -162,6 +162,7 @@ geoip_parse_entry(const char *line, sa_family_t family) if (*line == '#') return 0; + char buf[512]; if (family == AF_INET) { unsigned int low, high; if (tor_sscanf(line,"%u,%u,%2s", &low, &high, c) == 3 || @@ -172,7 +173,6 @@ geoip_parse_entry(const char *line, sa_family_t family) goto fail; country = c; } else { /* AF_INET6 */ - char buf[512]; char *low_str, *high_str; struct in6_addr low, high; char *strtok_state; |