1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-26 01:59:53 +03:00

Merge PR #1170: Cedar: fix server crash in CleanupSession()

This commit is contained in:
Davide Beatrici 2020-07-11 00:59:55 +02:00 committed by GitHub
commit e0c6813d44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1267,7 +1267,10 @@ void CleanupSession(SESSION *s)
FreePacketAdapter(s->PacketAdapter);
}
#ifdef OS_UNIX
UnixVLanSetState(s->ClientOption->DeviceName, false);
if (s->ClientOption != NULL)
{
UnixVLanSetState(s->ClientOption->DeviceName, false);
}
#endif
if (s->OldTraffic != NULL)
{