pam_regex: Return PAM_IGNORE if called with 'transform=' but without 'regex='

Bug spotted by Ray Morris.
This commit is contained in:
Sergey Poznyakoff 2020-03-29 11:27:40 +03:00
parent d14f8e6c1f
commit 5d4abc6e44

View file

@ -112,7 +112,6 @@ pam_sm_authenticate(pam_handle_t *pamh,
DEBUG(90,("enter pam_sm_authenticate"));
/*
* get username
*/
@ -149,6 +148,7 @@ pam_sm_authenticate(pam_handle_t *pamh,
_pam_log(LOG_ERR, "retval %d", retval);
return PAM_AUTHINFO_UNAVAIL;
}
retval = PAM_IGNORE;
}
if (regex) {