diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-03 02:37:52 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-03 02:37:52 +0000 |
commit | 9e8ae9766e5d4eb94972f2e7118ce8e9c2e09381 (patch) | |
tree | 0f3716d7dcda024edbec69a67827609dfe19299d /src/or/routerparse.c | |
parent | 5e74ce8d57e0de041480db99ffb11c4a90249355 (diff) | |
download | tor-9e8ae9766e5d4eb94972f2e7118ce8e9c2e09381.tar.gz tor-9e8ae9766e5d4eb94972f2e7118ce8e9c2e09381.zip |
Only check versions against downloaded directories, not cached directories.tor-0.0.9pre2
svn:r2413
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r-- | src/or/routerparse.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 773340dea0..52076ff1f0 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -285,7 +285,8 @@ int check_software_version_against_directory(const char *directory, int /* Should be static; exposed for unit tests */ router_parse_routerlist_from_directory(const char *str, routerlist_t **dest, - crypto_pk_env_t *pkey) + crypto_pk_env_t *pkey, + int check_version) { directory_token_t *tok; char digest[DIGEST_LEN]; @@ -335,7 +336,8 @@ router_parse_routerlist_from_directory(const char *str, tokens = NULL; /* Now that we know the signature is okay, check the version. */ - check_software_version_against_directory(str, options.IgnoreVersion); + if (check_version) + check_software_version_against_directory(str, options.IgnoreVersion); /* Now try to parse the first part of the directory. */ if ((end = strstr(str,"\nrouter "))) { |