aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-03-29 11:27:40 +0300
committerSergey Poznyakoff <gray@gnu.org>2020-03-29 11:27:40 +0300
commit5d4abc6e44f254a2e581e73ed818c42130fc765e (patch)
treedabdda4b8ca16969ccce5f77d35154ef120c1490
parentd14f8e6c1ff950d8186c8b9714ce65205e55652d (diff)
downloadpam-modules-5d4abc6e44f254a2e581e73ed818c42130fc765e.tar.gz
pam-modules-5d4abc6e44f254a2e581e73ed818c42130fc765e.tar.bz2
pam_regex: Return PAM_IGNORE if called with 'transform=' but without 'regex='
Bug spotted by Ray Morris.
-rw-r--r--pam_regex/pam_regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pam_regex/pam_regex.c b/pam_regex/pam_regex.c
index 0c3737b..567bce4 100644
--- a/pam_regex/pam_regex.c
+++ b/pam_regex/pam_regex.c
@@ -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) {

Return to:

Send suggestions and report system problems to the System administrator.