summaryrefslogtreecommitdiffstats
path: root/src/responder/nss/nsssrv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/responder/nss/nsssrv.c')
-rw-r--r--src/responder/nss/nsssrv.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/responder/nss/nsssrv.c b/src/responder/nss/nsssrv.c
index f14d698f2..4f5aa6293 100644
--- a/src/responder/nss/nsssrv.c
+++ b/src/responder/nss/nsssrv.c
@@ -162,6 +162,7 @@ int nss_process_init(TALLOC_CTX *mem_ctx,
struct be_conn *iter;
struct nss_ctx *nctx;
int ret, max_retries;
+ int hret;
nctx = talloc_zero(mem_ctx, struct nss_ctx);
if (!nctx) {
@@ -212,6 +213,13 @@ int nss_process_init(TALLOC_CTX *mem_ctx,
nss_dp_reconnect_init, iter);
}
+ /* Create the lookup table for netgroup results */
+ hret = hash_create(10, &nctx->netgroups, NULL, NULL);
+ if (hret != HASH_SUCCESS) {
+ DEBUG(0,("Unable to initialize netgroup hash table\n"));
+ return EIO;
+ }
+
DEBUG(1, ("NSS Initialization complete\n"));
return EOK;