summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-04-18 00:30:34 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-04-18 00:30:34 +0000
commitae5e78612835ec7da0d804a13d46f2b7ed294105 (patch)
treef574dab9d87d72ad4abcf7484e61e4f49e481a1e
parent99ba8bcc52a03b8734604686e8b96ebeff3e9388 (diff)
dhcpd may be invoked without any interface given
-rw-r--r--usr.sbin/dhcpd/dhcpd.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/dhcpd/dhcpd.c b/usr.sbin/dhcpd/dhcpd.c
index 331c9e81abf..6574af82679 100644
--- a/usr.sbin/dhcpd/dhcpd.c
+++ b/usr.sbin/dhcpd/dhcpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhcpd.c,v 1.12 2004/04/16 04:30:09 deraadt Exp $ */
+/* $OpenBSD: dhcpd.c,v 1.13 2004/04/18 00:30:33 henning Exp $ */
/*
* Copyright (c) 2004 Henning Brauer <henning@cvs.openbsd.org>
@@ -108,9 +108,6 @@ main(int argc, char *argv[])
argc -= optind;
argv += optind;
- if (!argc)
- usage();
-
while (argc > 0) {
struct interface_info *tmp = calloc(1, sizeof(*tmp));
if (!tmp)