From 397103b25bd04927a314eb1b4ea73608ad71ca4a Mon Sep 17 00:00:00 2001 From: Kenjiro Cho Date: Mon, 20 Aug 2001 08:36:28 +0000 Subject: fix a bug that steps over the array boundary. it hasn't been noticed until the recent code restructure. report by deraadt@. --- usr.sbin/altq/altqd/altqd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/altq/altqd') diff --git a/usr.sbin/altq/altqd/altqd.c b/usr.sbin/altq/altqd/altqd.c index 300bd8f0a3a..96f94571327 100644 --- a/usr.sbin/altq/altqd/altqd.c +++ b/usr.sbin/altq/altqd/altqd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: altqd.c,v 1.3 2001/08/16 12:59:43 kjc Exp $ */ +/* $OpenBSD: altqd.c,v 1.4 2001/08/20 08:36:27 kjc Exp $ */ /* $KAME: altqd.c,v 1.5 2001/08/16 10:39:16 kjc Exp $ */ /* * Copyright (c) 2001 Theo de Raadt @@ -334,7 +334,7 @@ main(int argc, char **argv) /* * check input from a client via unix domain socket */ - for (i = 0; i <= MAX_CLIENT; i++) { + for (i = 0; i < MAX_CLIENT; i++) { int fd; if (client[i] == NULL) -- cgit v1.2.3