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

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