summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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,