1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

idmap_autorid: rename TALLOC_CTX argument of idmap_autorid_loadconfig() to mem_ctx

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
Michael Adam 2013-09-10 13:43:15 +02:00 committed by Volker Lendecke
parent 56c80d1c82
commit 42a6bb7228

View File

@ -262,19 +262,19 @@ NTSTATUS idmap_autorid_getconfigstr(struct db_context *db, TALLOC_CTX *mem_ctx,
}
struct autorid_global_config *idmap_autorid_loadconfig(struct db_context *db,
TALLOC_CTX *ctx)
TALLOC_CTX *mem_ctx)
{
struct autorid_global_config *cfg;
unsigned long minvalue, rangesize, maxranges;
NTSTATUS status;
char *configstr = NULL;
status = idmap_autorid_getconfigstr(db, ctx, &configstr);
status = idmap_autorid_getconfigstr(db, mem_ctx, &configstr);
if (!NT_STATUS_IS_OK(status)) {
return NULL;
}
cfg = talloc_zero(ctx, struct autorid_global_config);
cfg = talloc_zero(mem_ctx, struct autorid_global_config);
if (!cfg) {
return NULL;
}