diff options
author | ru <ru@FreeBSD.org> | 2003-09-11 21:40:21 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2003-09-11 21:40:21 +0000 |
commit | 27c75c8f21b68a051100fcfb4c1ead51af82f27c (patch) | |
tree | 2e5bc0c5a4abec88fce26400f3a3a2ad0823f9cd /sys/netipx/ipx_input.c | |
parent | 1ea5197e3f7af28d45665d66279ded2085a9556c (diff) | |
download | FreeBSD-src-27c75c8f21b68a051100fcfb4c1ead51af82f27c.zip FreeBSD-src-27c75c8f21b68a051100fcfb4c1ead51af82f27c.tar.gz |
Fix a bunch of off-by-one errors in the range checking code.
Diffstat (limited to 'sys/netipx/ipx_input.c')
-rw-r--r-- | sys/netipx/ipx_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netipx/ipx_input.c b/sys/netipx/ipx_input.c index 01e05a8..d62c95f 100644 --- a/sys/netipx/ipx_input.c +++ b/sys/netipx/ipx_input.c @@ -279,7 +279,7 @@ ipx_ctlinput(cmd, arg_as_sa, dummy) caddr_t arg = (/* XXX */ caddr_t)arg_as_sa; struct ipx_addr *ipx; - if (cmd < 0 || cmd > PRC_NCMDS) + if (cmd < 0 || cmd >= PRC_NCMDS) return; switch (cmd) { struct sockaddr_ipx *sipx; |