From e8c9161a95471e9bdaacbc4beb7f96607c60c3a0 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 4 Sep 2013 13:29:56 +0200 Subject: idmap_autorid: Don't use db as a temporary talloc context. Signed-off-by: Michael Adam Reviewed-by: Volker Lendecke --- source3/winbindd/idmap_autorid_tdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/winbindd') diff --git a/source3/winbindd/idmap_autorid_tdb.c b/source3/winbindd/idmap_autorid_tdb.c index 23b4bc9fb0..0d90cf2266 100644 --- a/source3/winbindd/idmap_autorid_tdb.c +++ b/source3/winbindd/idmap_autorid_tdb.c @@ -188,7 +188,7 @@ static NTSTATUS idmap_autorid_addrange_action(struct db_context *db, goto error; } - numstr = talloc_asprintf(db, "%u", requested_rangenum); + numstr = talloc_asprintf(talloc_tos(), "%u", requested_rangenum); if (!numstr) { ret = NT_STATUS_NO_MEMORY; goto error; -- cgit