mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-02-27 06:54:15 +01:00
add check for NULL conv
This commit is contained in:
parent
19631c2efc
commit
2b33aafdb9
@ -407,6 +407,10 @@ display_error(pam_handle_t *pamh, const char *message) {
|
|||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!conv || !conv->conv){
|
||||||
|
D(("conv() function invalid"));
|
||||||
|
return PAM_CONV_ERR;
|
||||||
|
}
|
||||||
pmsg[0] = &msg[0];
|
pmsg[0] = &msg[0];
|
||||||
msg[0].msg = (char *) message; /* on some systems, pam_message.msg isn't const */
|
msg[0].msg = (char *) message; /* on some systems, pam_message.msg isn't const */
|
||||||
msg[0].msg_style = PAM_ERROR_MSG;
|
msg[0].msg_style = PAM_ERROR_MSG;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user