]> andersk Git - openssh.git/blobdiff - ssh-rand-helper.c
- dtucker@cvs.openbsd.org 2010/01/09 23:04:13
[openssh.git] / ssh-rand-helper.c
index 8b1c4b4f47bf034f52ce117dceaebd24daa3b361..0fcda7fff169f8b9ea2b0b959ab0b34158a2b776 100644 (file)
@@ -853,11 +853,17 @@ main(int argc, char **argv)
                default:
                        error("Invalid commandline option");
                        usage();
+                       exit(1);
                }
        }
-
        log_init(argv[0], ll, SYSLOG_FACILITY_USER, 1);
 
+       if (argc != optind) {
+               error("Unexpected commandline arguments.");
+               usage();
+               exit(1);
+       }
+
 #ifdef USE_SEED_FILES
        prng_read_seedfile();
 #endif
This page took 0.141593 seconds and 4 git commands to generate.