Browse Source

ntpd missed the argument check sweep.

OPENBSD_4_4
pyr 16 years ago
parent
commit
69c0857e6a
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/usr.sbin/ntpd/ntpd.c

+ 6
- 1
src/usr.sbin/ntpd/ntpd.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: ntpd.c,v 1.58 2007/12/31 17:21:35 henning Exp $ */
/* $OpenBSD: ntpd.c,v 1.59 2008/05/14 09:32:18 pyr Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -124,6 +124,11 @@ main(int argc, char *argv[])
}
}
argc -= optind;
argv += optind;
if (argc > 0)
usage();
if (parse_config(conffile, &lconf))
exit(1);


Loading…
Cancel
Save