浏览代码

Fix bug when parsing list of router descriptors containing a truncated entry. (Found by Lasse)

svn:r5327
Nick Mathewson 20 年之前
父节点
当前提交
76988bafbe
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/or/routerparse.c

+ 1 - 0
src/or/routerparse.c

@@ -675,6 +675,7 @@ router_parse_list_from_string(const char **s, smartlist_t *dest)
 
     if (strcmpstart(cp, "\n-----END SIGNATURE-----\n")) {
       info(LD_DIR, "Ignoring truncated router descriptor.");
+      *s = end;
       continue;
     }