diff options
author | Roger Dingledine <arma@torproject.org> | 2008-06-04 07:40:59 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-06-04 07:40:59 +0000 |
commit | 51300f9a902682aa7472335d9269859015183ac3 (patch) | |
tree | 687d6920e2319d1ad0bf911f452ef1231c4056dd | |
parent | 2d32de74e3166f61bed695ba47015a03e473df50 (diff) | |
download | tor-51300f9a902682aa7472335d9269859015183ac3.tar.gz tor-51300f9a902682aa7472335d9269859015183ac3.zip |
Bridge relays no longer print "xx=0" in their extrainfo document
for every single country code in the geoip db.
svn:r14930
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/or/geoip.c | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -1,6 +1,8 @@ Changes in version 0.2.0.28-rc - 2008-06-?? o Minor fixes: - - Fix unit tests in 0.2.0.27-rc. [Actually, one is still broken!] + - Bridge relays no longer print "xx=0" in their extrainfo document + for every single country code in the geoip db. + - Fix unit tests in 0.2.0.27-rc. - Fix compile on Windows. diff --git a/src/or/geoip.c b/src/or/geoip.c index c8c009373b..7d4e883bef 100644 --- a/src/or/geoip.c +++ b/src/or/geoip.c @@ -362,7 +362,7 @@ geoip_get_client_history(time_t now) #if MIN_IPS_TO_NOTE_COUNTRY > 0 if (c >= MIN_IPS_TO_NOTE_COUNTRY) { #else - if (1) { + if (c > 0) { #endif /* Round up to the next multiple of IP_GRANULARITY */ c += IP_GRANULARITY-1; |