Blame SOURCES/0002-providers-proxy-fixed-wrong-check.patch

836b22
From 80bfea505c45824f129290309c86e0df941914b7 Mon Sep 17 00:00:00 2001
836b22
From: Alexey Tikhonov <atikhono@redhat.com>
836b22
Date: Mon, 28 Jan 2019 18:30:21 +0100
836b22
Subject: [PATCH 2/9] providers/proxy: fixed wrong check
836b22
MIME-Version: 1.0
836b22
Content-Type: text/plain; charset=UTF-8
836b22
Content-Transfer-Encoding: 8bit
836b22
836b22
Fixed evident "copy-paste" bug with wrong var being checked for NULL
836b22
in proxy_id.c:remove_duplicate_group_members()
836b22
836b22
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
836b22
(cherry picked from commit 0f62cc9fbe27887462f322540abde3b8279c6b2f)
836b22
836b22
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
836b22
---
836b22
 src/providers/proxy/proxy_id.c | 2 +-
836b22
 1 file changed, 1 insertion(+), 1 deletion(-)
836b22
836b22
diff --git a/src/providers/proxy/proxy_id.c b/src/providers/proxy/proxy_id.c
836b22
index 478709f69..db65a984c 100644
836b22
--- a/src/providers/proxy/proxy_id.c
836b22
+++ b/src/providers/proxy/proxy_id.c
836b22
@@ -629,7 +629,7 @@ static errno_t remove_duplicate_group_members(TALLOC_CTX *mem_ctx,
836b22
 
836b22
         value.type = HASH_VALUE_PTR;
836b22
         value.ptr = talloc_strdup(member_tbl, orig_grp->gr_mem[i]);
836b22
-        if (key.str == NULL) {
836b22
+        if (value.ptr == NULL) {
836b22
             DEBUG(SSSDBG_OP_FAILURE, "talloc_strdup failed.\n");
836b22
             ret = ENOMEM;
836b22
             goto done;
836b22
-- 
836b22
2.21.1
836b22