diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-05-24 13:36:15 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-05-24 13:36:15 -0400 |
commit | 57e4324c425e6c9acd58c2270a183ee4d9b1e4aa (patch) | |
tree | 62078977da320d6065a5516852955cf64168b2ee /src/or/geoip.c | |
parent | 58721ac24c684236c52c062a255c38f2f019fda5 (diff) | |
download | tor-57e4324c425e6c9acd58c2270a183ee4d9b1e4aa.tar.gz tor-57e4324c425e6c9acd58c2270a183ee4d9b1e4aa.zip |
Fix a logic error in 4282 fixes
check_or_create_data_subdir has succeeded when it returns 0, not
when it returns negative.
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 73ad211881..1c307dcc57 100644 --- a/src/or/geoip.c +++ b/src/or/geoip.c @@ -1146,7 +1146,7 @@ geoip_dirreq_stats_write(time_t now) str = geoip_format_dirreq_stats(now); /* Write dirreq-stats string to disk. */ - if (check_or_create_data_subdir("stats") < 0) { + if (!check_or_create_data_subdir("stats")) { write_to_data_subdir("stats", "dirreq-stats", str, "dirreq statistics"); /* Reset measurement interval start. */ geoip_reset_dirreq_stats(now); |