summaryrefslogtreecommitdiff
path: root/src/responder
diff options
context:
space:
mode:
Diffstat (limited to 'src/responder')
-rw-r--r--src/responder/pam/pamsrv_cmd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c
index 27a6195d..8b642074 100644
--- a/src/responder/pam/pamsrv_cmd.c
+++ b/src/responder/pam/pamsrv_cmd.c
@@ -848,6 +848,13 @@ static int pam_check_user_search(struct pam_auth_req *preq)
return EOK;
}
+ if (!dom) {
+ /* Ensure that we don't try to check a provider without a domain,
+ * since this will cause a NULL-dereference below.
+ */
+ preq->check_provider = false;
+ }
+
if (preq->check_provider) {
/* dont loop forever :-) */