mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-12 14:29:28 +00:00
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.)
This commit is contained in:
parent
ab80d6fabc
commit
0567ae029a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56039
@ -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));
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user