diff options
author | Michael Adam <obnox@samba.org> | 2013-09-04 13:29:56 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-10-02 00:06:25 +0200 |
commit | e8c9161a95471e9bdaacbc4beb7f96607c60c3a0 (patch) | |
tree | cf6222bea83c5f078d1a54e415ffe3045c3585f8 /source3 | |
parent | 11ea83e9ae3b90fdd6c9b097256958683d473105 (diff) | |
download | samba-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>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/winbindd/idmap_autorid_tdb.c | 2 |
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; |