URL: https://github.com/SSSD/sssd/pull/445 Author: fidencio Title: #445: NSS: Use netgr as memory context in set_netgr_lifetime() - Patch for SSSD-1.13 Action: opened
PR body: """ We've noticed some crashes that happened because netgr is already freed, but the timeout handler is still called. In order to avoid that, let's remove the timeout handler when enum_ctx is freed at other places. Resolves: https://pagure.io/SSSD/sssd/issue/3523 Signed-off-by: Fabiano FidĂȘncio <[email protected]> (cherry picked from commit 67f739d5d9debbe0c7ccd5dccdd032122c0dd422) """ To pull the PR as Git branch: git remote add ghsssd https://github.com/SSSD/sssd git fetch ghsssd pull/445/head:pr445 git checkout pr445
From 8af7eb1c6ac5375ef1543add14ad9eba85df346e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= <[email protected]> Date: Mon, 6 Nov 2017 17:13:14 +0100 Subject: [PATCH] NSS: Use netgr as memory context in set_netgr_lifetime() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We've noticed some crashes that happened because netgr is already freed, but the timeout handler is still called. In order to avoid that, let's remove the timeout handler when enum_ctx is freed at other places. Resolves: https://pagure.io/SSSD/sssd/issue/3523 Signed-off-by: Fabiano FidĂȘncio <[email protected]> (cherry picked from commit 67f739d5d9debbe0c7ccd5dccdd032122c0dd422) --- src/responder/nss/nsssrv_netgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/responder/nss/nsssrv_netgroup.c b/src/responder/nss/nsssrv_netgroup.c index ee99b228e..29fc3665f 100644 --- a/src/responder/nss/nsssrv_netgroup.c +++ b/src/responder/nss/nsssrv_netgroup.c @@ -419,7 +419,7 @@ static void set_netgr_lifetime(uint32_t lifetime, tv = tevent_timeval_current_ofs(lifetime, 0); te = tevent_add_timer(step_ctx->nctx->rctx->ev, - step_ctx->nctx->gctx, tv, + netgr, tv, setnetgrent_result_timeout, netgr); if (!te) {
_______________________________________________ sssd-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
