Cedar: fix server crash in CleanupSession()
"ClientOption", as the name implies, is only used in a client context.
The issue was introduced in Before that, an unrelated check prevented UnixVLanSetState() from being called in a server context.
@@ -1267,7 +1267,10 @@ void CleanupSession(SESSION *s)
FreePacketAdapter(s->PacketAdapter);
}
#ifdef OS_UNIX
+ if (s->ClientOption != NULL)
+ {
UnixVLanSetState(s->ClientOption->DeviceName, false);
+ }
#endif
if (s->OldTraffic != NULL)
{
