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