summaryrefslogtreecommitdiff
path: root/src/or/networkstatus.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-10-16 17:21:03 +0000
committerNick Mathewson <nickm@torproject.org>2007-10-16 17:21:03 +0000
commit0dab1a14a5731dd823a4c5e3109ffb142f440356 (patch)
treeffb98112cd8a83a64616a49f35a24fdace6871be /src/or/networkstatus.c
parent58ecc39141f708ef2642dad265b25638e3f0bf9d (diff)
downloadtor-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.c3
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);