Blame SOURCES/0012-LDAP-Prevent-from-using-uninitialized-sdap_options.patch

2fc102
From 5eea6f1e7a43bdd63a1530fb9c68ef292f431f4f Mon Sep 17 00:00:00 2001
2fc102
From: Lukas Slebodnik <lslebodn@redhat.com>
2fc102
Date: Wed, 13 Nov 2013 08:32:23 +0100
2fc102
Subject: [PATCH 12/12] LDAP: Prevent from using uninitialized sdap_options
2fc102
2fc102
ldap_get_options can fail in time of ldap back end initialisation
2fc102
and then sssd try to release uninitialised sdap_options.
2fc102
2fc102
Resolves:
2fc102
https://fedorahosted.org/sssd/ticket/2147
2fc102
---
2fc102
 src/providers/ldap/ldap_init.c | 2 +-
2fc102
 1 file changed, 1 insertion(+), 1 deletion(-)
2fc102
2fc102
diff --git a/src/providers/ldap/ldap_init.c b/src/providers/ldap/ldap_init.c
2fc102
index 17874b1325d3e5bf2eded62c6f022364b84a5c2a..15615b2891f2e3104c11e8610c081adcd1d1ee8e 100644
2fc102
--- a/src/providers/ldap/ldap_init.c
2fc102
+++ b/src/providers/ldap/ldap_init.c
2fc102
@@ -94,7 +94,7 @@ int sssm_ldap_id_init(struct be_ctx *bectx,
2fc102
     const char *dns_service_name;
2fc102
     const char *sasl_mech;
2fc102
     struct sdap_service *sdap_service;
2fc102
-    struct sdap_options *opts;
2fc102
+    struct sdap_options *opts = NULL;
2fc102
     int ret;
2fc102
 
2fc102
     /* If we're already set up, just return that */
2fc102
-- 
2fc102
1.8.4.2
2fc102