Commit 0dab1a14 authored by Nick Mathewson's avatar Nick Mathewson 🎨
Browse files

r15860@catbus: nickm | 2007-10-16 13:09:57 -0400

 Avoid an infinite loop in networkstatus_reset_download_failures().


svn:r11990
parent 58ecc391
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment