2025-01-21 Fred Gleason <fredg@paravelsystems.com>

* Added code to the 'RDPam' processor to detection null contexts.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2025-01-21 14:25:33 -05:00
parent d8096ee2db
commit d20e0738bf
2 changed files with 6 additions and 0 deletions

View File

@ -24702,3 +24702,5 @@
2024-04-06 Fred Gleason <fredg@paravelsystems.com>
* Incremented the package version to 4.2.0
* Incremented the Python API version to 4.2.0.
2025-01-21 Fred Gleason <fredg@paravelsystems.com>
* Added code to the 'RDPam' processor to detection null contexts.

View File

@ -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;i<num_msg;i++) {
if(resp[i]==NULL) {
rda->syslog(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) {