mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-07-07 16:07:45 +02:00
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:
parent
d8096ee2db
commit
d20e0738bf
@ -24702,3 +24702,5 @@
|
|||||||
2024-04-06 Fred Gleason <fredg@paravelsystems.com>
|
2024-04-06 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Incremented the package version to 4.2.0
|
* Incremented the package version to 4.2.0
|
||||||
* Incremented the Python API 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.
|
||||||
|
@ -40,6 +40,10 @@ int RDPamCallback(int num_msg, const struct pam_message **msg,
|
|||||||
pam->CleanupPam();
|
pam->CleanupPam();
|
||||||
*resp=new struct pam_response[num_msg];
|
*resp=new struct pam_response[num_msg];
|
||||||
for(int i=0;i<num_msg;i++) {
|
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];
|
resp[i]->resp=new char[256];
|
||||||
memset(resp[i]->resp,0,256);
|
memset(resp[i]->resp,0,256);
|
||||||
switch(msg[i]->msg_style) {
|
switch(msg[i]->msg_style) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user