summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-04-04 20:36:43 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-04-05 17:16:53 +0200
commit4d09e8abf9f4306d3d6add88ee9100373c421c74 (patch)
tree35b943b695422850539f4dc2e65b0d51f6565355 /src
parentbdf63b2c329f12b4cdfcc04122f4547aad6bfa35 (diff)
downloadsssd-4d09e8abf9f4306d3d6add88ee9100373c421c74.tar.gz
sssd-4d09e8abf9f4306d3d6add88ee9100373c421c74.tar.bz2
sssd-4d09e8abf9f4306d3d6add88ee9100373c421c74.zip
Check for the correct variables
https://fedorahosted.org/sssd/ticket/1864
Diffstat (limited to 'src')
-rw-r--r--src/providers/dp_pam_data_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/dp_pam_data_util.c b/src/providers/dp_pam_data_util.c
index 4c33f583..2bc5368f 100644
--- a/src/providers/dp_pam_data_util.c
+++ b/src/providers/dp_pam_data_util.c
@@ -70,13 +70,13 @@ struct pam_data *create_pam_data(TALLOC_CTX *mem_ctx)
}
pd->authtok = sss_authtok_new(pd);
- if (pd == NULL) {
+ if (pd->authtok == NULL) {
DEBUG(SSSDBG_CRIT_FAILURE, ("talloc_zero failed.\n"));
goto failed;
}
pd->newauthtok = sss_authtok_new(pd);
- if (pd == NULL) {
+ if (pd->newauthtok == NULL) {
DEBUG(SSSDBG_CRIT_FAILURE, ("talloc_zero failed.\n"));
goto failed;
}