diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-10-24 10:21:09 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-10-24 10:21:09 -0400 |
commit | ea0518f209959250dd07272d739a6d9aa9531444 (patch) | |
tree | 0f1dce9acaaf00739903549b41b758854d23e6db /src/or/rephist.c | |
parent | d5bb0d778931b2006d27e7e34a0ea99011657610 (diff) | |
parent | f885c605013bd72970159aad92ad9d9f64395a0c (diff) | |
download | tor-ea0518f209959250dd07272d739a6d9aa9531444.tar.gz tor-ea0518f209959250dd07272d739a6d9aa9531444.zip |
Merge remote-tracking branch 'sebastian/bug4293'
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r-- | src/or/rephist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c index 1aa0aeb2ac..f8ebe644fc 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -2712,6 +2712,8 @@ rep_hist_desc_stats_write(time_t now) void rep_hist_note_desc_served(const char * desc) { + if (!served_descs) + return; // We're not collecting stats digestmap_set(served_descs, desc, (void *)1); total_descriptor_downloads++; } |