summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-06-04 07:41:22 +0000
committerRoger Dingledine <arma@torproject.org>2008-06-04 07:41:22 +0000
commit00405468aad5b94e3325aa19424482422e31a471 (patch)
tree397461b6822704c8c5c9d9fff20aac83eafde282
parentf3d679d4cc3e28e52a4c85d6f306ec5cdbaf0d11 (diff)
downloadtor-00405468aad5b94e3325aa19424482422e31a471.tar.gz
tor-00405468aad5b94e3325aa19424482422e31a471.zip
forward-port r14930
svn:r14931
-rw-r--r--src/or/geoip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/geoip.c b/src/or/geoip.c
index 35d882499f..3f2076c292 100644
--- a/src/or/geoip.c
+++ b/src/or/geoip.c
@@ -387,7 +387,7 @@ geoip_get_client_history(time_t now, geoip_client_action_t action)
#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;