mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-12-26 18:19:53 +03:00
Merge PR #715: src/Cedar: resolve possible null pointer dereference and silence dead code warning
This commit is contained in:
commit
33f5de78ba
@ -1869,6 +1869,7 @@ BEGIN_LISTENER:
|
||||
// If the port cannot be opened
|
||||
if (cn_next_allow <= Tick64())
|
||||
{
|
||||
#ifdef OS_WIN32
|
||||
if (cursor_changed)
|
||||
{
|
||||
// It can be judged to have the rights to open the port
|
||||
@ -1876,6 +1877,7 @@ BEGIN_LISTENER:
|
||||
// So, take over the port which is owned by other process forcibly
|
||||
CncReleaseSocket();
|
||||
}
|
||||
#endif // OS_WIN32
|
||||
|
||||
if (cn_listener->Halt)
|
||||
{
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user