浏览代码

Don't segfault when checking the consensus

Sebastian Hahn 15 年之前
父节点
当前提交
1c39dbd53a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/or/routerparse.c

+ 1 - 0
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) {