mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
src/Cedar/Virtual: resolve null pointer dereference
found by coverity
This commit is contained in:
parent
e0e4e8a4c8
commit
c98c7858bd
@ -1072,9 +1072,9 @@ void NnFragmentedIpReceived(NATIVE_NAT *t, PKT *packet)
|
|||||||
c = NnInsertIpCombine(
|
c = NnInsertIpCombine(
|
||||||
t, ip->SrcIP, ip->DstIP, Endian16(ip->Identification), ip->Protocol, packet->BroadcastPacket,
|
t, ip->SrcIP, ip->DstIP, Endian16(ip->Identification), ip->Protocol, packet->BroadcastPacket,
|
||||||
ip->TimeToLive, false);
|
ip->TimeToLive, false);
|
||||||
c->MaxL3Size = MAX(c->MaxL3Size, l3_size);
|
|
||||||
if (c != NULL)
|
if (c != NULL)
|
||||||
{
|
{
|
||||||
|
c->MaxL3Size = MAX(c->MaxL3Size, l3_size);
|
||||||
NnCombineIp(t, c, offset, data, size, last_packet, head_ip_header_data, head_ip_header_size);
|
NnCombineIp(t, c, offset, data, size, last_packet, head_ip_header_data, head_ip_header_size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user