diff options
author | Kenjiro Cho <kjc@cvs.openbsd.org> | 2001-08-20 08:36:28 +0000 |
---|---|---|
committer | Kenjiro Cho <kjc@cvs.openbsd.org> | 2001-08-20 08:36:28 +0000 |
commit | 397103b25bd04927a314eb1b4ea73608ad71ca4a (patch) | |
tree | 96710e025c146f428bfbfbff4727729fb4b64bc6 /usr.sbin/altq | |
parent | 9f75129a22149ceb48b08c0c356fa0cad8502345 (diff) |
fix a bug that steps over the array boundary.
it hasn't been noticed until the recent code restructure.
report by deraadt@.
Diffstat (limited to 'usr.sbin/altq')
-rw-r--r-- | usr.sbin/altq/altqd/altqd.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |