From d20e0738bfa739d8645ff908aa01da50f296d91d Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Tue, 21 Jan 2025 14:25:33 -0500 Subject: [PATCH] 2025-01-21 Fred Gleason * Added code to the 'RDPam' processor to detection null contexts. Signed-off-by: Fred Gleason --- ChangeLog | 2 ++ lib/rdpam.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7e2b9c55..19e96448 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24702,3 +24702,5 @@ 2024-04-06 Fred Gleason * Incremented the package version to 4.2.0 * Incremented the Python API version to 4.2.0. +2025-01-21 Fred Gleason + * Added code to the 'RDPam' processor to detection null contexts. diff --git a/lib/rdpam.cpp b/lib/rdpam.cpp index 3a23eeae..613ad29d 100644 --- a/lib/rdpam.cpp +++ b/lib/rdpam.cpp @@ -40,6 +40,10 @@ int RDPamCallback(int num_msg, const struct pam_message **msg, pam->CleanupPam(); *resp=new struct pam_response[num_msg]; for(int i=0;isyslog(LOG_WARNING,"PAM callback supplied NULL context, ignoring"); + break; + } resp[i]->resp=new char[256]; memset(resp[i]->resp,0,256); switch(msg[i]->msg_style) {