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

Avoid an infinite loop in networkstatus_reset_download_failures().


svn:r11990
This commit is contained in:
Nick Mathewson 2007-10-16 17:21:03 +00:00
parent 58ecc39141
commit 0dab1a14a5

View File

@ -104,7 +104,8 @@ networkstatus_reset_download_failures(void)
const char *key; const char *key;
void *val; void *val;
download_status_t *dls; 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); digestmap_iter_get(iter, &key, &val);
dls = val; dls = val;
download_status_reset(dls); download_status_reset(dls);