diff options
author | Roger Dingledine <arma@torproject.org> | 2006-01-02 05:11:31 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-01-02 05:11:31 +0000 |
commit | ddf070e204dfc4a11fe7f541317023360a45ad9c (patch) | |
tree | 47b401f36f96d5296c7542079fdc18afe85bcac9 | |
parent | ea6ea8ec22b949ec387edc8b17a940aa02510195 (diff) | |
download | tor-ddf070e204dfc4a11fe7f541317023360a45ad9c.tar.gz tor-ddf070e204dfc4a11fe7f541317023360a45ad9c.zip |
bugfix: we were failing to parse a tor version that started with
"Tor ", even though we said we could.
svn:r5699
-rw-r--r-- | src/or/routerparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 6512dec2e9..01b2396888 100644 --- a/src/or/routerparse.c +++ b/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); |