aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
Diffstat (limited to 'src/or')
-rw-r--r--src/or/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index cab82fc897..24b0f601bf 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -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);
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. "
"Proceeding anyway.", state->TorVersion);
}