summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_reass.c
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2006-01-18 18:59:30 +0000
committerandre <andre@FreeBSD.org>2006-01-18 18:59:30 +0000
commit2e859829d7209e0caa413c1d29cbad70eae8d925 (patch)
tree8df09598322b7396721a70e44a48ae53d05dd2e5 /sys/netinet/tcp_reass.c
parent908fcfd9ba44e783fc098b7ed21b72b873e82c45 (diff)
downloadFreeBSD-src-2e859829d7209e0caa413c1d29cbad70eae8d925.zip
FreeBSD-src-2e859829d7209e0caa413c1d29cbad70eae8d925.tar.gz
Do not derefence the ip header pointer in the IPv6 case.
This fixes a bug in the previous commit. Found by: Coverity Prevent(tm) Coverity ID: CID253 Sponsored by: TCP/IP Optimization Fundraise 2005 MFC after: 3 days
Diffstat (limited to 'sys/netinet/tcp_reass.c')
-rw-r--r--sys/netinet/tcp_reass.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c
index a8f3c81..e71b6bd 100644
--- a/sys/netinet/tcp_reass.c
+++ b/sys/netinet/tcp_reass.c
@@ -747,6 +747,7 @@ findpcb:
#ifdef INET6
if (isipv6 && inp->inp_ip_minttl > ip6->ip6_hlim)
goto drop;
+ else
#endif
if (inp->inp_ip_minttl > ip->ip_ttl)
goto drop;
OpenPOWER on IntegriCloud