mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
tolerate a mal-formed or unrecognized tor version in the state file.
svn:r5696
This commit is contained in:
parent
a45b131590
commit
839111b85a
@ -3532,8 +3532,8 @@ or_state_validate(or_state_t *old_state, or_state_t *state)
|
||||
return -1;
|
||||
}
|
||||
if (tor_version_parse(state->TorVersion, &v)) {
|
||||
warn(LD_GENERAL, "Unable to parse Tor version '%s'", state->TorVersion);
|
||||
return -1;
|
||||
warn(LD_GENERAL, "Can't parse Tor version '%s' from your state file. "
|
||||
"Proceeding anyway.", state->TorVersion);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user