summaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-10-28 15:56:19 +0000
committerNick Mathewson <nickm@torproject.org>2005-10-28 15:56:19 +0000
commit76988bafbed829f9331aeb5b43a99a231141f34b (patch)
tree6340e4bd9ae49320109b4218e3632414795662d0 /src/or/routerparse.c
parent267af9ecf94dce7b570cc59f78aec23004981eea (diff)
downloadtor-76988bafbed829f9331aeb5b43a99a231141f34b.tar.gz
tor-76988bafbed829f9331aeb5b43a99a231141f34b.zip
Fix bug when parsing list of router descriptors containing a truncated entry. (Found by Lasse)
svn:r5327
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 4321f67436..06652819e4 100644
--- a/src/or/routerparse.c
+++ b/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;
}