瀏覽代碼

Iteration is happier when you stop.

svn:r4950
Nick Mathewson 20 年之前
父節點
當前提交
a938190bdb
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/or/dirserv.c

+ 1 - 0
src/or/dirserv.c

@@ -1182,6 +1182,7 @@ dirserv_get_networkstatus_v2(smartlist_t *result,
       void *val;
       strmap_iter_get(iter, &fp, &val);
       smartlist_add(result, val);
+      iter = strmap_iter_next(cached_v2_networkstatus, iter);
     }
   } else if (!strcmpstart(key, "fp/")) {
     smartlist_t *hexdigests = smartlist_create();