mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-10 03:30:39 +03:00
src/Cedar/Hub.c: resolve possible null pointer dereference
found by coverity
This commit is contained in:
parent
f5bba7499d
commit
36dbde6f32
@ -3782,7 +3782,7 @@ LABEL_TRY_AGAIN:
|
|||||||
|
|
||||||
if (no_parse_dhcp == false && packet != NULL)
|
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
|
// Remove the designation of the DHCP server from the DHCP response packet addressed to localhost
|
||||||
if (packet->TypeL7 == L7_DHCPV4)
|
if (packet->TypeL7 == L7_DHCPV4)
|
||||||
|
Loading…
Reference in New Issue
Block a user