diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2003-09-11 21:40:21 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2003-09-11 21:40:21 +0000 |
commit | 78f94aa95136605c7e67672b9416b97dea1e7723 (patch) | |
tree | 2e5bc0c5a4abec88fce26400f3a3a2ad0823f9cd /sys/netipx/ipx_input.c | |
parent | 0c7721e8f9f6c719f53f653fd7cf864b6e21cc38 (diff) | |
download | src-78f94aa95136605c7e67672b9416b97dea1e7723.tar.gz src-78f94aa95136605c7e67672b9416b97dea1e7723.zip |
Fix a bunch of off-by-one errors in the range checking code.
Notes
Notes:
svn path=/head/; revision=119995
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 01e05a8ed3cb..d62c95f76d18 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; |