zero previous session info

This commit is contained in:
donnaskiez 2024-06-09 17:26:12 +10:00
parent ea2278e7b3
commit b88109a4c4

View file

@ -79,6 +79,9 @@ SessionTerminate()
session->um_handle = NULL;
session->process = NULL;
session->is_session_active = FALSE;
RtlZeroMemory(&session->module, sizeof(MODULE_INFORMATION));
SessionTerminateHeartbeat(&session->heartbeat_config);
CryptCloseSessionCryptObjects();
KeReleaseGuardedMutex(&session->lock);