mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
bugfix: we were failing to parse a tor version that started with
"Tor ", even though we said we could. svn:r5699
This commit is contained in:
parent
ea6ea8ec22
commit
ddf070e204
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user