summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-08-07 01:30:23 +0000
committerNick Mathewson <nickm@torproject.org>2004-08-07 01:30:23 +0000
commit6ceb351e31a6077d1aa456c7cb1e14f2a080e7b2 (patch)
tree35e2af5d20e8b42115c7f081d8c7005ef36f436f
parent2091dab7f4617dbf2d4fdbf07c0f36dcaf7c50dc (diff)
downloadtor-6ceb351e31a6077d1aa456c7cb1e14f2a080e7b2.tar.gz
tor-6ceb351e31a6077d1aa456c7cb1e14f2a080e7b2.zip
Comment about n_args<1 is correct, since all directory servers are running post-007x versions
svn:r2179
-rw-r--r--src/or/routerparse.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 4bb30d4d1c..5e719d70bf 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -575,9 +575,8 @@ static int check_directory_signature(const char *digest,
tok->args[0]);
return -1;
}
- } else if (tok->n_args > 1) {
-/* XXX008 Nick: shouldn't we check for <1 too? */
- log_fn(LOG_WARN, "Too many arguments to directory-signature");
+ } else {
+ log_fn(LOG_WARN, "Too many or too few arguments to directory-signature");
return -1;
}
if (strcmp(tok->object_type, "SIGNATURE") || tok->object_size != 128) {