summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2015-03-06 11:27:36 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-03-06 12:16:48 +0100
commit77e789f65ab6a5007945edc2a9650a7209358b9c (patch)
treede5cefa0293c0b850a0f2e4ec640d63afb2281cc
parent0f1b17391dce51ce149cafecf5dfe7acc1dc32cb (diff)
downloadsssd-77e789f65ab6a5007945edc2a9650a7209358b9c.tar.gz
sssd-77e789f65ab6a5007945edc2a9650a7209358b9c.tar.xz
sssd-77e789f65ab6a5007945edc2a9650a7209358b9c.zip
ldap_child: initialized ccname_file_dummy
ccname_file_dummy is used in the done-block which is called before ccname_file_dummy is set to a value. This patch initializes ccname_file_dummy to NULL. Related to https://fedorahosted.org/sssd/ticket/2592 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> (cherry picked from commit cc0f9a541c5ecdad750a86b2de9baa1f07403e9e)
-rw-r--r--src/providers/ldap/ldap_child.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ldap/ldap_child.c b/src/providers/ldap/ldap_child.c
index bb61a6185..822eb22b9 100644
--- a/src/providers/ldap/ldap_child.c
+++ b/src/providers/ldap/ldap_child.c
@@ -274,7 +274,7 @@ static krb5_error_code ldap_child_get_tgt_sync(TALLOC_CTX *memctx,
int kdc_time_offset_usec;
int ret;
TALLOC_CTX *tmp_ctx;
- char *ccname_file_dummy;
+ char *ccname_file_dummy = NULL;
char *ccname_file;
mode_t old_umask;