From: Nick Mathewson Date: Sat, 7 Aug 2004 01:30:23 +0000 (+0000) Subject: Comment about n_args<1 is correct, since all directory servers are running post-007x... X-Git-Tag: tor-0.0.8pre3~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ceb351e31a6077d1aa456c7cb1e14f2a080e7b2;p=thirdparty%2Ftor.git Comment about n_args<1 is correct, since all directory servers are running post-007x versions svn:r2179 --- 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) {