Blame SOURCES/0016-NSS-Fix-memory-leak-in-sss_setnetgrent.patch

2fc102
From 81aa563090c33bafbf22f1cde586b77ed526c25f Mon Sep 17 00:00:00 2001
2fc102
From: Lukas Slebodnik <lslebodn@redhat.com>
2fc102
Date: Wed, 27 Nov 2013 10:22:59 +0100
2fc102
Subject: [PATCH 16/17] NSS: Fix memory leak in sss_setnetgrent
2fc102
2fc102
struct nss_cmd_ctx was not released in function nss_cmd_setnetgrent_done
2fc102
and it wasn't used in the other function, because getnetgrent creates its own
2fc102
nss_cmd_ctx context. struct nss_cmd_ctx was released after closing client
2fc102
because it was allocated under client context. Memory leak is apparent with
2fc102
long living clients.
2fc102
2fc102
Resolves:
2fc102
https://fedorahosted.org/sssd/ticket/2170
2fc102
---
2fc102
 src/responder/nss/nsssrv_netgroup.c | 2 +-
2fc102
 1 file changed, 1 insertion(+), 1 deletion(-)
2fc102
2fc102
diff --git a/src/responder/nss/nsssrv_netgroup.c b/src/responder/nss/nsssrv_netgroup.c
2fc102
index a1c41968db0becbc42a1c501b666d9aec5241b5f..18e8579372fa39a1b3a60076948bc12bc008fb80 100644
2fc102
--- a/src/responder/nss/nsssrv_netgroup.c
2fc102
+++ b/src/responder/nss/nsssrv_netgroup.c
2fc102
@@ -687,7 +687,7 @@ static void nss_cmd_setnetgrent_done(struct tevent_req *req)
2fc102
             ((uint32_t *)body)[1] = 0; /* reserved */
2fc102
         }
2fc102
 
2fc102
-        sss_cmd_done(cmdctx->cctx, NULL);
2fc102
+        sss_cmd_done(cmdctx->cctx, cmdctx);
2fc102
         return;
2fc102
     }
2fc102
 
2fc102
-- 
2fc102
1.8.4.2
2fc102