]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Comment about n_args<1 is correct, since all directory servers are running post-007x...
authorNick Mathewson <nickm@torproject.org>
Sat, 7 Aug 2004 01:30:23 +0000 (01:30 +0000)
committerNick Mathewson <nickm@torproject.org>
Sat, 7 Aug 2004 01:30:23 +0000 (01:30 +0000)
svn:r2179

src/or/routerparse.c

index 4bb30d4d1cc12ce5156b33e891343d6ebacf8d74..5e719d70bffc02b5004810eca8b36d7cfe62bb29 100644 (file)
@@ -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) {