summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-01-02 04:58:12 +0000
committerRoger Dingledine <arma@torproject.org>2006-01-02 04:58:12 +0000
commitaa604ef2c21a2dac24106bbb0502a130ef7f7bf4 (patch)
tree25a78737a2383b9f7e3c74a85ef0f91f63e726af
parent839111b85a7a76e834ef789bcacfe8f4d59e4cf2 (diff)
downloadtor-aa604ef2c21a2dac24106bbb0502a130ef7f7bf4.tar.gz
tor-aa604ef2c21a2dac24106bbb0502a130ef7f7bf4.zip
bugfix: only try to parse the TorVersion if there is one.
svn:r5697
-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);
}