1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-27 10:39:53 +03:00

Merge pull request #1336 from chipitsine/master

src/Mayaqua/TcpIp.c: remove redundant check
This commit is contained in:
Ilya Shipitsin 2021-04-23 23:27:02 +05:00 committed by GitHub
commit 4e248e833c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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_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;