summaryrefslogtreecommitdiffstats
path: root/server/responder/pam/pamsrv_cmd.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2009-05-14 12:38:03 +0200
committerSimo Sorce <ssorce@redhat.com>2009-05-14 11:29:02 -0400
commit5422d203f05859fa2841e3a68980813806eb9581 (patch)
treed33d35a0cfe135e330c360ea4069022620a1981b /server/responder/pam/pamsrv_cmd.c
parentfbd46659003e418c2cd3551b425fcd24a1befd13 (diff)
downloadsssd-5422d203f05859fa2841e3a68980813806eb9581.tar.gz
sssd-5422d203f05859fa2841e3a68980813806eb9581.tar.xz
sssd-5422d203f05859fa2841e3a68980813806eb9581.zip
added check for NULL values
- allow unspecified value in struct pam_data to be NULL - check if domain structure is initialized in pam_reply
Diffstat (limited to 'server/responder/pam/pamsrv_cmd.c')
-rw-r--r--server/responder/pam/pamsrv_cmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/responder/pam/pamsrv_cmd.c b/server/responder/pam/pamsrv_cmd.c
index 6d3f89918..df0cba454 100644
--- a/server/responder/pam/pamsrv_cmd.c
+++ b/server/responder/pam/pamsrv_cmd.c
@@ -141,6 +141,7 @@ static void pam_reply(struct pam_auth_req *preq)
DEBUG(4, ("pam_reply get called.\n"));
if ((pd->cmd == SSS_PAM_AUTHENTICATE) &&
+ (preq->domain != NULL) &&
(preq->domain->cache_credentials == true) &&
(pd->offline_auth == false)) {