From c1b922352fd88909401bad914cf660f29d5b063c Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Tue, 2 Oct 2012 11:25:04 +0200 Subject: Fix various issues found by Coverity --- daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'daemons/ipa-slapi-plugins/ipa-cldap') diff --git a/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap.c b/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap.c index d7a59d512..54d44ebf6 100644 --- a/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap.c +++ b/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap.c @@ -124,13 +124,15 @@ static int ipa_cldap_init_service(Slapi_PBlock *pb, slapi_pblock_get(pb, SLAPI_PLUGIN_CONFIG_ENTRY, &e); if (!e) { LOG_FATAL("Plugin configuration not found!\n"); - return -1; + ret = -1; + goto done; } ctx->base_dn = slapi_entry_attr_get_charptr(e, "nsslapd-basedn"); if (!ctx->base_dn) { LOG_FATAL("Plugin configuration not found!\n"); - return -1; + ret = -1; + goto done; } /* create a stop pipe so the main DS thread can interrupt the poll() -- cgit