From f3ff7e27435975038e1ef1f54c2ab046323032fa Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Tue, 21 Aug 2018 11:04:48 +0500 Subject: [PATCH] src/Cedar/BridgeUnix: resolve coverity "issue" --- 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 797f6fcd..50a0c0bd 100644 --- a/src/Cedar/BridgeUnix.c +++ b/src/Cedar/BridgeUnix.c @@ -2664,7 +2664,7 @@ void EthPutPacketLinuxIpRaw(ETH *e, void *data, UINT size) p = ParsePacket(data, size); - if (p && 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)) {