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

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