From b88109a4c41eaa462f4a4f58b1323e1ddea35857 Mon Sep 17 00:00:00 2001 From: donnaskiez Date: Sun, 9 Jun 2024 17:26:12 +1000 Subject: [PATCH] zero previous session info --- driver/session.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/driver/session.c b/driver/session.c index 100c9df..bd02daf 100644 --- a/driver/session.c +++ b/driver/session.c @@ -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);