summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/in6_pcb.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/netinet6/in6_pcb.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/netinet6/in6_pcb.c')
-rw-r--r--sys/netinet6/in6_pcb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c
index 84ea6a9..ab59d52 100644
--- a/sys/netinet6/in6_pcb.c
+++ b/sys/netinet6/in6_pcb.c
@@ -824,7 +824,7 @@ in6_pcbnotify(head, dst, fport_arg, src, lport_arg, cmd, notify)
u_int32_t flowinfo;
int errno, s;
- if ((unsigned)cmd > PRC_NCMDS || dst->sa_family != AF_INET6)
+ if ((unsigned)cmd >= PRC_NCMDS || dst->sa_family != AF_INET6)
return;
sa6_dst = (struct sockaddr_in6 *)dst;
OpenPOWER on IntegriCloud