Return PAM_CONV_ERR from the conversation function if getpass returns

NULL or the user pressed ^C.
This commit is contained in:
Todd C. Miller
2016-06-01 14:48:31 -06:00
parent 7a35bab8c8
commit a24f4b8248

View File

@@ -485,6 +485,7 @@ converse(int num_msg, PAM_CONST struct pam_message **msg,
if (pass == NULL) {
/* Error (or ^C) reading password, don't try again. */
getpass_error = true;
ret = PAM_CONV_ERR;
goto done;
}
if (strlen(pass) >= PAM_MAX_RESP_SIZE) {