Return PAM_CONV_ERR from the conversation function if getpass returns
NULL or the user pressed ^C.
This commit is contained in:
@@ -485,6 +485,7 @@ converse(int num_msg, PAM_CONST struct pam_message **msg,
|
|||||||
if (pass == NULL) {
|
if (pass == NULL) {
|
||||||
/* Error (or ^C) reading password, don't try again. */
|
/* Error (or ^C) reading password, don't try again. */
|
||||||
getpass_error = true;
|
getpass_error = true;
|
||||||
|
ret = PAM_CONV_ERR;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
if (strlen(pass) >= PAM_MAX_RESP_SIZE) {
|
if (strlen(pass) >= PAM_MAX_RESP_SIZE) {
|
||||||
|
Reference in New Issue
Block a user