[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Fix bug when parsing list of router descriptors containing ...



Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv30415/src/or

Modified Files:
	routerparse.c 
Log Message:
Fix bug when parsing list of router descriptors containing a truncated entry.  (Found by Lasse)

Index: routerparse.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/routerparse.c,v
retrieving revision 1.157
retrieving revision 1.158
diff -u -d -r1.157 -r1.158
--- routerparse.c	25 Oct 2005 18:01:01 -0000	1.157
+++ routerparse.c	28 Oct 2005 15:56:19 -0000	1.158
@@ -675,6 +675,7 @@
 
     if (strcmpstart(cp, "\n-----END SIGNATURE-----\n")) {
       info(LD_DIR, "Ignoring truncated router descriptor.");
+      *s = end;
       continue;
     }