diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-01-11 14:13:04 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-01-11 14:13:04 +0000 |
commit | 0c77ae2fcbf3ff08270adfc0c44ffa0b2308c81c (patch) | |
tree | e9c9ab92894e8e914e8c43056a2d4f65505599e0 /src | |
parent | 7beb0fd5ddce9239d3e2fc9e260e4641d0b44e15 (diff) | |
download | tor-0c77ae2fcbf3ff08270adfc0c44ffa0b2308c81c.tar.gz tor-0c77ae2fcbf3ff08270adfc0c44ffa0b2308c81c.zip |
r11930@Kushana: nickm | 2007-01-11 09:05:27 -0500
fix recently-introduced segfault when not running as a dirserver
svn:r9332
Diffstat (limited to 'src')
-rw-r--r-- | src/or/dirserv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index e2d27bfdae..24e7314486 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1105,6 +1105,9 @@ dirserv_clear_old_networkstatuses(time_t cutoff) { digestmap_iter_t *iter; + if (!cached_v2_networkstatus) + return; + for (iter = digestmap_iter_init(cached_v2_networkstatus); !digestmap_iter_done(iter); ) { const char *ident; |