Blame SOURCES/0020-sss_ptr_hash-removed-redundant-check.patch

0d097b
From 8cc2ce4e9060a71d441a377008fb2f567baa5d92 Mon Sep 17 00:00:00 2001
0d097b
From: Alexey Tikhonov <atikhono@redhat.com>
0d097b
Date: Thu, 23 Jan 2020 20:07:41 +0100
0d097b
Subject: [PATCH 20/23] sss_ptr_hash: removed redundant check
0d097b
MIME-Version: 1.0
0d097b
Content-Type: text/plain; charset=UTF-8
0d097b
Content-Transfer-Encoding: 8bit
0d097b
0d097b
`sss_ptr_hash_check_type()` call would take care of this case.
0d097b
0d097b
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
0d097b
---
0d097b
 src/util/sss_ptr_hash.c | 6 ------
0d097b
 1 file changed, 6 deletions(-)
0d097b
0d097b
diff --git a/src/util/sss_ptr_hash.c b/src/util/sss_ptr_hash.c
0d097b
index 7326244e6..bf111a613 100644
0d097b
--- a/src/util/sss_ptr_hash.c
0d097b
+++ b/src/util/sss_ptr_hash.c
0d097b
@@ -268,12 +268,6 @@ sss_ptr_hash_lookup_internal(hash_table_t *table,
0d097b
         return NULL;
0d097b
     }
0d097b
 
0d097b
-    /* This may happen if we are in delete callback
0d097b
-     * and we try to search the hash table. */
0d097b
-    if (table_value.ptr == NULL) {
0d097b
-        return NULL;
0d097b
-    }
0d097b
-
0d097b
     if (!sss_ptr_hash_check_type(table_value.ptr, "struct sss_ptr_hash_value")) {
0d097b
         return NULL;
0d097b
     }
0d097b
-- 
0d097b
2.20.1
0d097b