From 63b426bed01b2c5e0af782989615944277b29945 Mon Sep 17 00:00:00 2001 From: Martin Nagy Date: Tue, 13 Oct 2009 13:36:28 +0200 Subject: Use correct talloc context in sss_names_init() --- server/util/usertools.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server') diff --git a/server/util/usertools.c b/server/util/usertools.c index 44f5ba29..a3f7ad94 100644 --- a/server/util/usertools.c +++ b/server/util/usertools.c @@ -47,13 +47,13 @@ char *get_username_from_uid(TALLOC_CTX *mem_ctx, uid_t uid) int sss_names_init(TALLOC_CTX *mem_ctx, struct confdb_ctx *cdb, struct sss_names_ctx **out) { - struct sss_names_ctx *ctx = NULL; + struct sss_names_ctx *ctx; const char *errstr; int errval; int errpos; int ret; - ctx = talloc_zero(ctx, struct sss_names_ctx); + ctx = talloc_zero(mem_ctx, struct sss_names_ctx); if (!ctx) return ENOMEM; ret = confdb_get_string(cdb, ctx, CONFDB_MONITOR_CONF_ENTRY, -- cgit