mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-10 03:30:39 +03:00
src/Cedar/Hub: resolve null pointer dereference found by coverity
This commit is contained in:
parent
9675b0eb6d
commit
156166dba1
@ -3700,7 +3700,7 @@ bool HubPaPutPacket(SESSION *s, void *data, UINT size)
|
|||||||
pa->Now = Tick64();
|
pa->Now = Tick64();
|
||||||
|
|
||||||
// Processing of Adjust TCP MSS
|
// Processing of Adjust TCP MSS
|
||||||
if (hub->Option != NULL && hub->Option->DisableAdjustTcpMss == false && s != NULL)
|
if (hub != NULL && hub->Option != NULL && hub->Option->DisableAdjustTcpMss == false && s != NULL)
|
||||||
{
|
{
|
||||||
UINT target_mss = (hub->Option->AdjustTcpMssValue == 0 ? INFINITE : hub->Option->AdjustTcpMssValue);
|
UINT target_mss = (hub->Option->AdjustTcpMssValue == 0 ? INFINITE : hub->Option->AdjustTcpMssValue);
|
||||||
UINT session_mss = (s->AdjustMss == 0 ? INFINITE : s->AdjustMss);
|
UINT session_mss = (s->AdjustMss == 0 ? INFINITE : s->AdjustMss);
|
||||||
|
Loading…
Reference in New Issue
Block a user