mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
bugfix: only try to parse the TorVersion if there is one.
svn:r5697
This commit is contained in:
parent
839111b85a
commit
aa604ef2c2
@ -3531,7 +3531,7 @@ or_state_validate(or_state_t *old_state, or_state_t *state)
|
|||||||
warn(LD_GENERAL, "Unable to parse entry nodes: %s", err);
|
warn(LD_GENERAL, "Unable to parse entry nodes: %s", err);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (tor_version_parse(state->TorVersion, &v)) {
|
if (state->TorVersion && tor_version_parse(state->TorVersion, &v)) {
|
||||||
warn(LD_GENERAL, "Can't parse Tor version '%s' from your state file. "
|
warn(LD_GENERAL, "Can't parse Tor version '%s' from your state file. "
|
||||||
"Proceeding anyway.", state->TorVersion);
|
"Proceeding anyway.", state->TorVersion);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user