|
|
4c9df62 |
From 22cc09e379710b29520d5bbc6fdf6ad84473cd43 Mon Sep 17 00:00:00 2001
|
|
|
4c9df62 |
From: Sumit Bose <sbose@redhat.com>
|
|
|
4c9df62 |
Date: Mon, 6 Nov 2017 17:03:19 +0100
|
|
|
4c9df62 |
Subject: [PATCH 53/79] NSS: Use enum_ctx as memory_context in
|
|
|
4c9df62 |
_setnetgrent_set_timeout()
|
|
|
4c9df62 |
MIME-Version: 1.0
|
|
|
4c9df62 |
Content-Type: text/plain; charset=UTF-8
|
|
|
4c9df62 |
Content-Transfer-Encoding: 8bit
|
|
|
4c9df62 |
|
|
|
4c9df62 |
We've noticed some crashes that happened because enum_ctx is already
|
|
|
4c9df62 |
freed, but the timeout handler is still called. In order to avoid that,
|
|
|
4c9df62 |
let's remove the timeout handler when enum_ctx is freed at other places.
|
|
|
4c9df62 |
|
|
|
4c9df62 |
Resolves: https://pagure.io/SSSD/sssd/issue/3523
|
|
|
4c9df62 |
|
|
|
4c9df62 |
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
|
|
|
4c9df62 |
|
|
|
4c9df62 |
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
|
|
|
4c9df62 |
---
|
|
|
4c9df62 |
src/responder/nss/nss_enum.c | 2 +-
|
|
|
4c9df62 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
4c9df62 |
|
|
|
4c9df62 |
diff --git a/src/responder/nss/nss_enum.c b/src/responder/nss/nss_enum.c
|
|
|
4c9df62 |
index aa7d8428f37e943a6b5904495c40ad4b8011b767..da844fbced529f606a3e98669fb7b95e0696ce00 100644
|
|
|
4c9df62 |
--- a/src/responder/nss/nss_enum.c
|
|
|
4c9df62 |
+++ b/src/responder/nss/nss_enum.c
|
|
|
4c9df62 |
@@ -283,7 +283,7 @@ nss_setnetgrent_set_timeout(struct tevent_context *ev,
|
|
|
4c9df62 |
timeout = enum_ctx->result[0]->domain->netgroup_timeout;
|
|
|
4c9df62 |
|
|
|
4c9df62 |
tv = tevent_timeval_current_ofs(timeout, 0);
|
|
|
4c9df62 |
- te = tevent_add_timer(ev, nss_ctx, tv, nss_setnetgrent_timeout, enum_ctx);
|
|
|
4c9df62 |
+ te = tevent_add_timer(ev, enum_ctx, tv, nss_setnetgrent_timeout, enum_ctx);
|
|
|
4c9df62 |
if (te == NULL) {
|
|
|
4c9df62 |
DEBUG(SSSDBG_CRIT_FAILURE,
|
|
|
4c9df62 |
"Could not set up life timer for enumeration object.\n");
|
|
|
4c9df62 |
--
|
|
|
4c9df62 |
2.15.1
|
|
|
4c9df62 |
|