From 62d84a29de32b376e5f3943f454f0f21638c8dd0 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 29 Aug 2023 11:36:36 -0400 Subject: [PATCH] context.c: fixed invalid pointer --- citadel/server/context.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/citadel/server/context.c b/citadel/server/context.c index 28815f485..8b54b02b1 100644 --- a/citadel/server/context.c +++ b/citadel/server/context.c @@ -515,7 +515,6 @@ void dead_session_purge(int force) { //return; // begin_critical_section(S_SESSION_TABLE); - ptr = ContextList; while (ptr) { ptr2 = ptr; @@ -539,7 +538,7 @@ void dead_session_purge(int force) { rem = ptr2; } else if (ptr2->kill_me) { - syslog(LOG_DEBUG, "context: session %d is timed out but non-idle", rem->cs_pid); + syslog(LOG_DEBUG, "context: session %d is timed out but non-idle", ptr->cs_pid); } } end_critical_section(S_SESSION_TABLE); -- 2.39.2