diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-10-16 17:21:03 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-10-16 17:21:03 +0000 |
commit | 0dab1a14a5731dd823a4c5e3109ffb142f440356 (patch) | |
tree | ffb98112cd8a83a64616a49f35a24fdace6871be /src/or/networkstatus.c | |
parent | 58ecc39141f708ef2642dad265b25638e3f0bf9d (diff) | |
download | tor-0dab1a14a5731dd823a4c5e3109ffb142f440356.tar.gz tor-0dab1a14a5731dd823a4c5e3109ffb142f440356.zip |
r15860@catbus: nickm | 2007-10-16 13:09:57 -0400
Avoid an infinite loop in networkstatus_reset_download_failures().
svn:r11990
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r-- | src/or/networkstatus.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c index 6e770af5db..b9087e0f74 100644 --- a/src/or/networkstatus.c +++ b/src/or/networkstatus.c @@ -104,7 +104,8 @@ networkstatus_reset_download_failures(void) const char *key; void *val; download_status_t *dls; - for (iter = digestmap_iter_init(map); !digestmap_iter_done(iter); ) { + for (iter = digestmap_iter_init(map); !digestmap_iter_done(iter); + iter = digestmap_iter_next(map, iter) ) { digestmap_iter_get(iter, &key, &val); dls = val; download_status_reset(dls); |