diff options
author | Roger Dingledine <arma@torproject.org> | 2006-01-02 04:58:12 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-01-02 04:58:12 +0000 |
commit | aa604ef2c21a2dac24106bbb0502a130ef7f7bf4 (patch) | |
tree | 25a78737a2383b9f7e3c74a85ef0f91f63e726af | |
parent | 839111b85a7a76e834ef789bcacfe8f4d59e4cf2 (diff) | |
download | tor-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.c | 2 |
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); } |