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 13:48:42 +0100
commite1e3d6b888dd99a71f773fbcd76c6cf59ae998cd (patch)
tree6fcbc30cc4944021fff5fbe1363de5fecec7105b
parente946ea98f8ef14d8077f85de1127763d643296a3 (diff)
downloadsssd-e1e3d6b888dd99a71f773fbcd76c6cf59ae998cd.tar.gz
sssd-e1e3d6b888dd99a71f773fbcd76c6cf59ae998cd.tar.xz
sssd-e1e3d6b888dd99a71f773fbcd76c6cf59ae998cd.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 774cff9c2..8f034affa 100644
--- a/src/providers/ldap/ldap_child.c
+++ b/src/providers/ldap/ldap_child.c
@@ -272,7 +272,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;