Blame SOURCES/0066-sss_ptr_hash-keep-value-pointer-when-destroying-spy.patch

5fca41
From 00926ab450074741e2a2b5c699c440e6309e3bff Mon Sep 17 00:00:00 2001
5fca41
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
5fca41
Date: Mon, 2 Sep 2019 13:48:13 +0200
5fca41
Subject: [PATCH 66/90] sss_ptr_hash: keep value pointer when destroying spy
5fca41
MIME-Version: 1.0
5fca41
Content-Type: text/plain; charset=UTF-8
5fca41
Content-Transfer-Encoding: 8bit
5fca41
5fca41
Oterwise its value in delete callback is NULL.
5fca41
5fca41
Reviewed-by: Tomáš Halman <thalman@redhat.com>
5fca41
---
5fca41
 src/util/sss_ptr_hash.c | 2 +-
5fca41
 1 file changed, 1 insertion(+), 1 deletion(-)
5fca41
5fca41
diff --git a/src/util/sss_ptr_hash.c b/src/util/sss_ptr_hash.c
5fca41
index bc0db6f48..e8fd19ca8 100644
5fca41
--- a/src/util/sss_ptr_hash.c
5fca41
+++ b/src/util/sss_ptr_hash.c
5fca41
@@ -59,10 +59,10 @@ static int
5fca41
 sss_ptr_hash_spy_destructor(struct sss_ptr_hash_spy *spy)
5fca41
 {
5fca41
     spy->value->spy = NULL;
5fca41
-    spy->value->ptr = NULL;
5fca41
 
5fca41
     /* This results in removing entry from hash table and freeing the value. */
5fca41
     sss_ptr_hash_delete(spy->table, spy->key, false);
5fca41
+
5fca41
     return 0;
5fca41
 }
5fca41
 
5fca41
-- 
5fca41
2.20.1
5fca41