From aa604ef2c21a2dac24106bbb0502a130ef7f7bf4 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Mon, 2 Jan 2006 04:58:12 +0000 Subject: bugfix: only try to parse the TorVersion if there is one. svn:r5697 --- src/or/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/config.c') 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); } -- cgit v1.2.3-54-g00ecf