[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] tolerate a mal-formed or unrecognized tor version in the st...



Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	config.c 
Log Message:
tolerate a mal-formed or unrecognized tor version in the state file.


Index: config.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.473
retrieving revision 1.474
diff -u -p -d -r1.473 -r1.474
--- config.c	2 Jan 2006 04:14:52 -0000	1.473
+++ config.c	2 Jan 2006 04:45:18 -0000	1.474
@@ -3532,8 +3532,8 @@ or_state_validate(or_state_t *old_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;
 }