[or-cvs] [tor/master] Don't segfault when checking the consensus

nickm at torproject.org nickm at torproject.org
Fri Feb 26 07:03:15 UTC 2010


Author: Sebastian Hahn <sebastian at torproject.org>
Date: Fri, 26 Feb 2010 08:00:56 +0100
Subject: Don't segfault when checking the consensus
Commit: 1c39dbd53a4c47ac3bfd6770d0ca2f8f058f888b

---
 src/or/routerparse.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 99cd29d..940a2d8 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -3078,6 +3078,7 @@ networkstatus_parse_vote_from_string(const char *s, const char **eos_out,
   {
     int found_sig = 0;
     SMARTLIST_FOREACH_BEGIN(footer_tokens, directory_token_t *, _tok) {
+      tok = _tok;
       if (tok->tp == K_DIRECTORY_SIGNATURE)
         found_sig = 1;
       else if (found_sig) {
-- 
1.6.5



More information about the tor-commits mailing list