summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorshin <shin@FreeBSD.org>2000-01-15 14:34:56 +0000
committershin <shin@FreeBSD.org>2000-01-15 14:34:56 +0000
commit7620bb5bda9f31ed03a3e34b69bbef0d6abbe53d (patch)
tree61670ecc2189dfadeb0a6a23886aecf7cda26fc3 /sys/netinet
parent89bb6f8da797959859b9c1e6a63a13fcb605cbff (diff)
downloadFreeBSD-src-7620bb5bda9f31ed03a3e34b69bbef0d6abbe53d.zip
FreeBSD-src-7620bb5bda9f31ed03a3e34b69bbef0d6abbe53d.tar.gz
Added missing 'else' for 'if (isipv6)' at IPv6 length setting in tcp_respond().
By this bug, IPv6 reset was not sent. (I checked around same kind of bug, but no other found.)
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/tcp_subr.c2
-rw-r--r--sys/netinet/tcp_timewait.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index 66958c2..fbe02c1 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -393,7 +393,7 @@ tcp_respond(tp, ipgen, th, m, ack, seq, flags)
ip6->ip6_plen = htons((u_short)(sizeof (struct tcphdr) +
tlen));
tlen += sizeof (struct ip6_hdr) + sizeof (struct tcphdr);
- }
+ } else
#endif
{
ipov->ih_len = htons((u_short)(sizeof (struct tcphdr) + tlen));
diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c
index 66958c2..fbe02c1 100644
--- a/sys/netinet/tcp_timewait.c
+++ b/sys/netinet/tcp_timewait.c
@@ -393,7 +393,7 @@ tcp_respond(tp, ipgen, th, m, ack, seq, flags)
ip6->ip6_plen = htons((u_short)(sizeof (struct tcphdr) +
tlen));
tlen += sizeof (struct ip6_hdr) + sizeof (struct tcphdr);
- }
+ } else
#endif
{
ipov->ih_len = htons((u_short)(sizeof (struct tcphdr) + tlen));
OpenPOWER on IntegriCloud