From 6f9b5e7ebfe037795afbae0c5b25a6337c94c4c6 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Nov 14 2013 18:43:57 +0000 Subject: LDAP: Prevent from using uninitialized sdap_options ldap_get_options can fail in time of ldap back end initialisation and then sssd try to release uninitialised sdap_options. Resolves: https://fedorahosted.org/sssd/ticket/2147 --- diff --git a/src/providers/ldap/ldap_init.c b/src/providers/ldap/ldap_init.c index 17874b1..15615b2 100644 --- a/src/providers/ldap/ldap_init.c +++ b/src/providers/ldap/ldap_init.c @@ -94,7 +94,7 @@ int sssm_ldap_id_init(struct be_ctx *bectx, const char *dns_service_name; const char *sasl_mech; struct sdap_service *sdap_service; - struct sdap_options *opts; + struct sdap_options *opts = NULL; int ret; /* If we're already set up, just return that */