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/netinet/tcp_subr.c | |
| parent | 0c7721e8f9f6c719f53f653fd7cf864b6e21cc38 (diff) | |
Notes
Diffstat (limited to 'sys/netinet/tcp_subr.c')
| -rw-r--r-- | sys/netinet/tcp_subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 26aa1a69244e..6a176f3c379a 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -1138,7 +1138,7 @@ tcp_ctlinput(cmd, sa, vip) notify = in_rtchange; } else if (cmd == PRC_HOSTDEAD) ip = 0; - else if ((unsigned)cmd > PRC_NCMDS || inetctlerrmap[cmd] == 0) + else if ((unsigned)cmd >= PRC_NCMDS || inetctlerrmap[cmd] == 0) return; if (ip) { s = splnet(); @@ -1204,7 +1204,7 @@ tcp6_ctlinput(cmd, sa, d) else if (cmd == PRC_MSGSIZE) notify = tcp_mtudisc; else if (!PRC_IS_REDIRECT(cmd) && - ((unsigned)cmd > PRC_NCMDS || inet6ctlerrmap[cmd] == 0)) + ((unsigned)cmd >= PRC_NCMDS || inet6ctlerrmap[cmd] == 0)) return; /* if the parameter is from icmp6, decode it. */ |
