diff options
author | Martin Nagy <mnagy@redhat.com> | 2009-10-13 13:36:28 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-10-22 13:56:20 -0400 |
commit | 63b426bed01b2c5e0af782989615944277b29945 (patch) | |
tree | 10becc4af5b7a3155017f3511a266babb42f7298 | |
parent | d4fda88466dd49910eb562258a3be3dd253e33ec (diff) | |
download | sssd-63b426bed01b2c5e0af782989615944277b29945.tar.gz sssd-63b426bed01b2c5e0af782989615944277b29945.tar.bz2 sssd-63b426bed01b2c5e0af782989615944277b29945.zip |
Use correct talloc context in sss_names_init()
-rw-r--r-- | server/util/usertools.c | 4 |
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, |