From 4d09e8abf9f4306d3d6add88ee9100373c421c74 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Thu, 4 Apr 2013 20:36:43 +0200 Subject: Check for the correct variables https://fedorahosted.org/sssd/ticket/1864 --- src/providers/dp_pam_data_util.c | 4 ++-- 1 file 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; } -- cgit