dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0140-IPA-Avoid-using-uninitialized-ret-value-when-skippin.patch

ecf709
From 4986fe8b68a3e14a30e8091353bf0679eb3c5e55 Mon Sep 17 00:00:00 2001
ecf709
From: Jakub Hrozek <jhrozek@redhat.com>
ecf709
Date: Wed, 24 May 2017 21:24:20 +0200
ecf709
Subject: [PATCH 140/141] IPA: Avoid using uninitialized ret value when
ecf709
 skipping entries from the joined domain
ecf709
MIME-Version: 1.0
ecf709
Content-Type: text/plain; charset=UTF-8
ecf709
Content-Transfer-Encoding: 8bit
ecf709
ecf709
Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com>
ecf709
(cherry picked from commit 3e3034199b44e01899ec7ba8152fef3738a0e093)
ecf709
---
ecf709
 src/providers/ipa/ipa_s2n_exop.c | 1 +
ecf709
 1 file changed, 1 insertion(+)
ecf709
ecf709
diff --git a/src/providers/ipa/ipa_s2n_exop.c b/src/providers/ipa/ipa_s2n_exop.c
ecf709
index 15904e0197919c34b1bce58b4bd2c070f99b67a7..3f5f9859554f0b98ecd3fdad31fd66274c5707b0 100644
ecf709
--- a/src/providers/ipa/ipa_s2n_exop.c
ecf709
+++ b/src/providers/ipa/ipa_s2n_exop.c
ecf709
@@ -991,6 +991,7 @@ static errno_t s2n_response_to_attrs(TALLOC_CTX *mem_ctx,
ecf709
                 } else {
ecf709
                     DEBUG(SSSDBG_TRACE_ALL,
ecf709
                           "[%s] from root domain, skipping.\n", fq_name);
ecf709
+                    ret = EOK; /* Free resources and continue in the loop */
ecf709
                 }
ecf709
                 ber_memfree(domain_name);
ecf709
                 ber_memfree(name);
ecf709
-- 
ecf709
2.9.4
ecf709