aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
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 /src/or/routerparse.c
parent2091dab7f4617dbf2d4fdbf07c0f36dcaf7c50dc (diff)
downloadtor-6ceb351e31a6077d1aa456c7cb1e14f2a080e7b2.tar
tor-6ceb351e31a6077d1aa456c7cb1e14f2a080e7b2.tar.gz
Comment about n_args<1 is correct, since all directory servers are running post-007x versions
svn:r2179
Diffstat (limited to 'src/or/routerparse.c')
-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 4bb30d4d1..5e719d70b 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) {