summaryrefslogtreecommitdiffstats
path: root/server/util/usertools.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/util/usertools.c')
-rw-r--r--server/util/usertools.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/util/usertools.c b/server/util/usertools.c
index 44f5ba292..a3f7ad946 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,