summaryrefslogtreecommitdiffstats
path: root/src/responder
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-01-14 10:39:40 -0500
committerStephen Gallagher <sgallagh@redhat.com>2011-01-14 13:29:13 -0500
commitcfc59f88682356a9894737aa09e422ff7cc935c0 (patch)
treec9e4348c99bdf3004140924d29f61f92c89f78aa /src/responder
parent6a03b2a9c967d250825d614607d0bb7b901e8696 (diff)
downloadsssd-cfc59f88682356a9894737aa09e422ff7cc935c0.tar.gz
sssd-cfc59f88682356a9894737aa09e422ff7cc935c0.tar.xz
sssd-cfc59f88682356a9894737aa09e422ff7cc935c0.zip
Fix missing hash table bug
When the automatic cleanup happened, if the netgroup had been created with no contents (to indicate an unknown netgroup), we weren't saving the hash table address and the talloc_free() was failing.
Diffstat (limited to 'src/responder')
-rw-r--r--src/responder/nss/nsssrv_netgroup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/responder/nss/nsssrv_netgroup.c b/src/responder/nss/nsssrv_netgroup.c
index 331fb8456..c5ca36f53 100644
--- a/src/responder/nss/nsssrv_netgroup.c
+++ b/src/responder/nss/nsssrv_netgroup.c
@@ -493,6 +493,7 @@ static errno_t lookup_netgr_step(struct setent_step_ctx *step_ctx)
} else {
netgr->ready = true;
netgr->entries = NULL;
+ netgr->lookup_table = step_ctx->nctx->netgroups;
ret = set_netgroup_entry(step_ctx->nctx, step_ctx->name, netgr);
if (ret != EOK) {