From: Michael Adam Date: Wed, 4 Sep 2013 11:29:56 +0000 (+0200) Subject: idmap_autorid: Don't use db as a temporary talloc context. X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=e8c9161a95471e9bdaacbc4beb7f96607c60c3a0;p=mat%2Fsamba.git idmap_autorid: Don't use db as a temporary talloc context. Signed-off-by: Michael Adam Reviewed-by: Volker Lendecke --- 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;