From b5f391016e605c8f9f9d57fe2d07558487051eb3 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sat, 1 Sep 2018 15:00:42 +0500 Subject: [PATCH] src/Cedar/BridgeUnix.c: resolve possible null pointer dereference found by coverity --- src/Cedar/BridgeUnix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cedar/BridgeUnix.c b/src/Cedar/BridgeUnix.c index 9f3e6bc0..74243ee6 100644 --- a/src/Cedar/BridgeUnix.c +++ b/src/Cedar/BridgeUnix.c @@ -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)) {