mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-09 19:20:41 +03:00
Merge pull request #1336 from chipitsine/master
src/Mayaqua/TcpIp.c: remove redundant check
This commit is contained in:
commit
4e248e833c
@ -1808,7 +1808,7 @@ void CorrectChecksum(PKT *p)
|
|||||||
USHORT udp_offloading_checksum1 = CalcChecksumForIPv6(&v6->SrcAddress, &v6->DestAddress, IP_PROTO_UDP, NULL, 0, udp_len);
|
USHORT udp_offloading_checksum1 = CalcChecksumForIPv6(&v6->SrcAddress, &v6->DestAddress, IP_PROTO_UDP, NULL, 0, udp_len);
|
||||||
USHORT udp_offloading_checksum2 = ~udp_offloading_checksum1;
|
USHORT udp_offloading_checksum2 = ~udp_offloading_checksum1;
|
||||||
|
|
||||||
if (udp->Checksum == 0 || udp->Checksum == udp_offloading_checksum1 || udp->Checksum == udp_offloading_checksum2)
|
if (udp->Checksum == udp_offloading_checksum1 || udp->Checksum == udp_offloading_checksum2)
|
||||||
{
|
{
|
||||||
udp->Checksum = 0;
|
udp->Checksum = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user