summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-09-04 13:29:56 +0200
committerMichael Adam <obnox@samba.org>2013-10-02 00:06:25 +0200
commite8c9161a95471e9bdaacbc4beb7f96607c60c3a0 (patch)
treecf6222bea83c5f078d1a54e415ffe3045c3585f8
parent11ea83e9ae3b90fdd6c9b097256958683d473105 (diff)
downloadsamba-e8c9161a95471e9bdaacbc4beb7f96607c60c3a0.tar.gz
samba-e8c9161a95471e9bdaacbc4beb7f96607c60c3a0.tar.bz2
samba-e8c9161a95471e9bdaacbc4beb7f96607c60c3a0.zip
idmap_autorid: Don't use db as a temporary talloc context.
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
-rw-r--r--source3/winbindd/idmap_autorid_tdb.c2
1 files changed, 1 insertions, 1 deletions
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;