--- src/sys/netinet6/in6_pcb.c 2004/12/21 02:54:47 1.19 +++ src/sys/netinet6/in6_pcb.c 2004/12/28 19:55:16 1.20 @@ -759,7 +759,7 @@ in6_pcbnotify(struct inpcbhead *head, st 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;