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
89bb6f8da7
commit
7620bb5bda
@ -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