summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);