From 36dbde6f32f3d7303653ac53dba028a05100d3cb Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Mon, 24 Sep 2018 11:13:43 +0500 Subject: [PATCH] src/Cedar/Hub.c: resolve possible null pointer dereference found by coverity --- src/Cedar/Hub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cedar/Hub.c b/src/Cedar/Hub.c index 257c6779..b109cfa6 100644 --- a/src/Cedar/Hub.c +++ b/src/Cedar/Hub.c @@ -3782,7 +3782,7 @@ LABEL_TRY_AGAIN: if (no_parse_dhcp == false && packet != NULL) { - if (hub->Option != NULL && hub->Option->RemoveDefGwOnDhcpForLocalhost) + if (hub != NULL && hub->Option != NULL && hub->Option->RemoveDefGwOnDhcpForLocalhost) { // Remove the designation of the DHCP server from the DHCP response packet addressed to localhost if (packet->TypeL7 == L7_DHCPV4)