summaryrefslogtreecommitdiffstats
path: root/sys/netipx/spx_usrreq.c
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2003-09-11 21:40:21 +0000
committerru <ru@FreeBSD.org>2003-09-11 21:40:21 +0000
commit27c75c8f21b68a051100fcfb4c1ead51af82f27c (patch)
tree2e5bc0c5a4abec88fce26400f3a3a2ad0823f9cd /sys/netipx/spx_usrreq.c
parent1ea5197e3f7af28d45665d66279ded2085a9556c (diff)
downloadFreeBSD-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/spx_usrreq.c')
-rw-r--r--sys/netipx/spx_usrreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netipx/spx_usrreq.c b/sys/netipx/spx_usrreq.c
index 8d9682b..371e85e 100644
--- a/sys/netipx/spx_usrreq.c
+++ b/sys/netipx/spx_usrreq.c
@@ -638,7 +638,7 @@ spx_ctlinput(cmd, arg_as_sa, dummy)
struct ipx_addr *na;
struct sockaddr_ipx *sipx;
- if (cmd < 0 || cmd > PRC_NCMDS)
+ if (cmd < 0 || cmd >= PRC_NCMDS)
return;
switch (cmd) {
OpenPOWER on IntegriCloud