[or-cvs] add another assert to make sure we"re not scribbling on the...

arma at seul.org arma at seul.org
Tue Jan 17 04:14:07 UTC 2006


Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	routerlist.c 
Log Message:
add another assert to make sure we're not scribbling on the stack.


Index: routerlist.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.426
retrieving revision 1.427
diff -u -p -d -r1.426 -r1.427
--- routerlist.c	16 Jan 2006 20:52:30 -0000	1.426
+++ routerlist.c	17 Jan 2006 04:14:04 -0000	1.427
@@ -3568,6 +3568,7 @@ router_reset_descriptor_download_failure
     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,
        {



More information about the tor-commits mailing list