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

[or-cvs] bugfix: we were failing to parse a tor version that started...



Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	routerparse.c 
Log Message:
bugfix: we were failing to parse a tor version that started with
"Tor ", even though we said we could.


Index: routerparse.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/routerparse.c,v
retrieving revision 1.166
retrieving revision 1.167
diff -u -p -d -r1.166 -r1.167
--- routerparse.c	15 Dec 2005 21:17:40 -0000	1.166
+++ routerparse.c	2 Jan 2006 05:11:31 -0000	1.167
@@ -1740,7 +1740,7 @@ tor_version_parse(const char *s, tor_ver
   memset(out, 0, sizeof(tor_version_t));
 
   if (!strcasecmpstart(s, "Tor "))
-    cp += 4;
+    s += 4;
 
   /* Get major. */
   out->major = strtol(s,&eos,10);