Blame SOURCES/0005-negcache-make-sure-domain-config-does-not-leak-into-.patch

b833e0
From 0e1bcf77bd73baa0fea64830eb1f4f65a63c7afe Mon Sep 17 00:00:00 2001
b833e0
From: Sumit Bose <sbose@redhat.com>
b833e0
Date: Thu, 8 Oct 2020 12:18:41 +0200
b833e0
Subject: [PATCH 5/8] negcache: make sure domain config does not leak into
b833e0
 global
b833e0
b833e0
Resolves: https://github.com/SSSD/sssd/issues/5238
b833e0
b833e0
Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
b833e0
---
b833e0
 src/responder/common/negcache.c | 2 ++
b833e0
 1 file changed, 2 insertions(+)
b833e0
b833e0
diff --git a/src/responder/common/negcache.c b/src/responder/common/negcache.c
b833e0
index ce1c0ab8c..139218420 100644
b833e0
--- a/src/responder/common/negcache.c
b833e0
+++ b/src/responder/common/negcache.c
b833e0
@@ -1050,6 +1050,7 @@ errno_t sss_ncache_prepopulate(struct sss_nc_ctx *ncache,
b833e0
         }
b833e0
     }
b833e0
 
b833e0
+    talloc_zfree(filter_list);
b833e0
     /* Populate non domain-specific negative cache user entries */
b833e0
     ret = confdb_get_string_as_list(cdb, tmpctx, CONFDB_NSS_CONF_ENTRY,
b833e0
                                     CONFDB_NSS_FILTER_USERS, &filter_list);
b833e0
@@ -1185,6 +1186,7 @@ errno_t sss_ncache_prepopulate(struct sss_nc_ctx *ncache,
b833e0
         }
b833e0
     }
b833e0
 
b833e0
+    talloc_zfree(filter_list);
b833e0
     /* Populate non domain-specific negative cache group entries */
b833e0
     ret = confdb_get_string_as_list(cdb, tmpctx, CONFDB_NSS_CONF_ENTRY,
b833e0
                                     CONFDB_NSS_FILTER_GROUPS, &filter_list);
b833e0
-- 
b833e0
2.21.3
b833e0