r11930@Kushana: nickm | 2007-01-11 09:05:27 -0500

fix recently-introduced segfault when not running as a dirserver


svn:r9332
This commit is contained in:
Nick Mathewson 2007-01-11 14:13:04 +00:00
parent 7beb0fd5dd
commit 0c77ae2fcb

View File

@ -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;