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

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