Browse Source

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

svn:r5327
Nick Mathewson 20 years ago
parent
commit
76988bafbe
1 changed files with 1 additions and 0 deletions
  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;
     }