Sfoglia il codice sorgente

add another assert to make sure we're not scribbling on the stack.

svn:r5837
Roger Dingledine 20 anni fa
parent
commit
d5acef191c
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/or/routerlist.c

+ 1 - 0
src/or/routerlist.c

@@ -3568,6 +3568,7 @@ router_reset_descriptor_download_failures(void)
     rs->n_download_failures = 0;
     rs->next_attempt_at = 0;
   });
+  tor_assert(networkstatus_list);
   SMARTLIST_FOREACH(networkstatus_list, networkstatus_t *, ns,
      SMARTLIST_FOREACH(ns->entries, routerstatus_t *, rs,
        {