]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Don't segfault when checking the consensus
authorSebastian Hahn <sebastian@torproject.org>
Fri, 26 Feb 2010 07:00:56 +0000 (08:00 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Fri, 26 Feb 2010 07:01:40 +0000 (08:01 +0100)
src/or/routerparse.c

index 99cd29d6d7805e3c6880bd81ee3e371e765484f8..940a2d83e1b85f73892dabb5033413b8350a99d7 100644 (file)
@@ -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) {