1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2026-01-22 19:30:14 +03:00

Merge PR #685: src/Cedar/BridgeUnix.c: resolve possible null pointer dereference

This commit is contained in:
Davide Beatrici
2018-09-01 12:29:30 +02:00
committed by GitHub

View File

@ -2704,7 +2704,7 @@ void EthPutPacketLinuxIpRaw(ETH *e, void *data, UINT size)
p = ParsePacket(data, size);
if (p != NULL && p->BroadcastPacket || Cmp(p->MacAddressDest, e->RawIpMyMacAddr, 6) == 0)
if (p != NULL && (p->BroadcastPacket || Cmp(p->MacAddressDest, e->RawIpMyMacAddr, 6) == 0))
{
if (IsValidUnicastMacAddress(p->MacAddressSrc))
{