From cfc59f88682356a9894737aa09e422ff7cc935c0 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Fri, 14 Jan 2011 10:39:40 -0500 Subject: 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. --- src/responder/nss/nsssrv_netgroup.c | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit