From 69c0857e6a70dd32c883a413f499cb3b1b9fef8b Mon Sep 17 00:00:00 2001 From: pyr <> Date: Wed, 14 May 2008 09:32:18 +0000 Subject: [PATCH] ntpd missed the argument check sweep. --- src/usr.sbin/ntpd/ntpd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/usr.sbin/ntpd/ntpd.c b/src/usr.sbin/ntpd/ntpd.c index 18dd1500..9cfbc2b1 100644 --- a/src/usr.sbin/ntpd/ntpd.c +++ b/src/usr.sbin/ntpd/ntpd.c @@ -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 @@ -124,6 +124,11 @@ main(int argc, char *argv[]) } } + argc -= optind; + argv += optind; + if (argc > 0) + usage(); + if (parse_config(conffile, &lconf)) exit(1);