diff options
author | Chad Loder <cloder@cvs.openbsd.org> | 2003-09-28 23:17:46 +0000 |
---|---|---|
committer | Chad Loder <cloder@cvs.openbsd.org> | 2003-09-28 23:17:46 +0000 |
commit | 962b98cc3919ea12ffd86bc697aa4e3f505812e1 (patch) | |
tree | 05958672c1af6f91bf539cf823eab1b45c2c6b41 /sys/net | |
parent | ac8974a8de51edc4a7838f60167f279ffe4da0b9 (diff) |
Correct off-by-ones with respect to PRC_NCMDS. Mostly from FreeBSD.
OK krw@, deraadt@
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/raw_usrreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/raw_usrreq.c b/sys/net/raw_usrreq.c index ceddb7fe469..67940f882d8 100644 --- a/sys/net/raw_usrreq.c +++ b/sys/net/raw_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: raw_usrreq.c,v 1.7 2003/06/02 23:28:12 millert Exp $ */ +/* $OpenBSD: raw_usrreq.c,v 1.8 2003/09/28 23:17:45 cloder Exp $ */ /* $NetBSD: raw_usrreq.c,v 1.11 1996/02/13 22:00:43 christos Exp $ */ /* @@ -139,7 +139,7 @@ raw_ctlinput(cmd, arg, d) void *d; { - if (cmd < 0 || cmd > PRC_NCMDS) + if (cmd < 0 || cmd >= PRC_NCMDS) return NULL; return NULL; /* INCOMPLETE */ |