ntdll: Remove redundant assignment in fixup_icmp_over_dgram().

This commit is contained in:
Paul Gofman 2022-08-09 15:24:13 -05:00 committed by Alexandre Julliard
parent 6b75f93002
commit a91cc08975

View file

@ -711,7 +711,6 @@ static ssize_t fixup_icmp_over_dgram( struct msghdr *hdr, union unix_sockaddr *u
icmp_h->checksum = chksum( (BYTE *)icmp_h, recv_len - sizeof(ip_h) );
}
}
ip_h.checksum = 0;
ip_h.checksum = chksum( (BYTE *)&ip_h, sizeof(ip_h) );
memcpy( buf, &ip_h, min( sizeof(ip_h), buf_len ));