Blame SOURCES/0057-LDAP-Fix-error-check.patch

2fc102
From fe7f5b1a3a965d1667ba1552a2b1165788f3bd2e Mon Sep 17 00:00:00 2001
2fc102
From: Jakub Hrozek <jhrozek@redhat.com>
2fc102
Date: Fri, 17 Jan 2014 10:49:27 +0100
2fc102
Subject: [PATCH 57/57] LDAP: Fix error check
2fc102
2fc102
https://fedorahosted.org/sssd/ticket/2199
2fc102
---
2fc102
 src/providers/ldap/ldap_common.c | 4 ++--
2fc102
 1 file changed, 2 insertions(+), 2 deletions(-)
2fc102
2fc102
diff --git a/src/providers/ldap/ldap_common.c b/src/providers/ldap/ldap_common.c
2fc102
index 35ea81360b4ec61eca6b952cd86fc93a6eda17dc..4c94937aad9e25bd1cd0b6d573da2982b0f1be05 100644
2fc102
--- a/src/providers/ldap/ldap_common.c
2fc102
+++ b/src/providers/ldap/ldap_common.c
2fc102
@@ -831,8 +831,8 @@ errno_t common_parse_search_base(TALLOC_CTX *mem_ctx,
2fc102
         ret = sdap_create_search_base(search_bases, unparsed_base,
2fc102
                                       LDAP_SCOPE_SUBTREE, old_filter,
2fc102
                                       &search_bases[0]);
2fc102
-        if (!search_bases[0]) {
2fc102
-            ret = ENOMEM;
2fc102
+        if (ret != EOK) {
2fc102
+            DEBUG(SSSDBG_OP_FAILURE, ("Cannot create new sdap search base\n"));
2fc102
             goto done;
2fc102
         }
2fc102
 
2fc102
-- 
2fc102
1.8.4.2
2fc102