dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

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

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