summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/isakmpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/isakmpd/isakmpd.c')
-rw-r--r--sbin/isakmpd/isakmpd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/isakmpd/isakmpd.c b/sbin/isakmpd/isakmpd.c
index c9edeb6851f..5522ac9a2fb 100644
--- a/sbin/isakmpd/isakmpd.c
+++ b/sbin/isakmpd/isakmpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isakmpd.c,v 1.96 2007/04/02 08:08:32 moritz Exp $ */
+/* $OpenBSD: isakmpd.c,v 1.97 2008/05/12 19:15:02 pyr Exp $ */
/* $EOM: isakmpd.c,v 1.54 2000/10/05 09:28:22 niklas Exp $ */
/*
@@ -234,6 +234,9 @@ parse_args(int argc, char *argv[])
argc -= optind;
argv += optind;
+ if (argc > 0)
+ usage();
+
if (do_packetlog && !pcap_file)
pcap_file = PCAP_FILE_DEFAULT;
}