diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/responder/pam/pamsrv_cmd.c | 7 |
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 :-) */ |