mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
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:
parent
58ecc39141
commit
0dab1a14a5
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user