mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 13:28:10 +00:00
Return PAM_CONV_ERR from the conversation function if getpass returns
NULL or the user pressed ^C.
This commit is contained in:
parent
7a35bab8c8
commit
a24f4b8248
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user