Browse Source

bugfix: we were failing to parse a tor version that started with
"Tor ", even though we said we could.


svn:r5699

Roger Dingledine 19 years ago
parent
commit
ddf070e204
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/routerparse.c

+ 1 - 1
src/or/routerparse.c

@@ -1740,7 +1740,7 @@ tor_version_parse(const char *s, tor_version_t *out)
   memset(out, 0, sizeof(tor_version_t));
 
   if (!strcasecmpstart(s, "Tor "))
-    cp += 4;
+    s += 4;
 
   /* Get major. */
   out->major = strtol(s,&eos,10);