summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-03-07 19:56:21 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-03-16 13:52:43 -0400
commit4c889ec21e6267e47deb55812cc19a9363b028e5 (patch)
treeb64b8629aa193c7b40a3e043121a8e2f283fed62 /src
parent066a63f4fe5cacf2b3b82396ddfac0bce5177561 (diff)
downloadsssd-4c889ec21e6267e47deb55812cc19a9363b028e5.tar.gz
sssd-4c889ec21e6267e47deb55812cc19a9363b028e5.tar.xz
sssd-4c889ec21e6267e47deb55812cc19a9363b028e5.zip
Save original name into the in-memory cache
Diffstat (limited to 'src')
-rw-r--r--src/responder/nss/nsssrv_netgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/responder/nss/nsssrv_netgroup.c b/src/responder/nss/nsssrv_netgroup.c
index 098761cce..0c3ca592e 100644
--- a/src/responder/nss/nsssrv_netgroup.c
+++ b/src/responder/nss/nsssrv_netgroup.c
@@ -517,7 +517,7 @@ static errno_t lookup_netgr_step(struct setent_step_ctx *step_ctx)
netgr->found = false;
netgr->entries = NULL;
netgr->lookup_table = step_ctx->nctx->netgroups;
- netgr->name = talloc_strdup(netgr, name);
+ netgr->name = talloc_strdup(netgr, step_ctx->name);
if (netgr->name == NULL) {
DEBUG(1, ("talloc_strdup failed.\n"));
talloc_free(netgr);