git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11ea83e
)
idmap_autorid: Don't use db as a temporary talloc context.
author
Michael Adam
<obnox@samba.org>
Wed, 4 Sep 2013 11:29:56 +0000
(13:29 +0200)
committer
Michael Adam
<obnox@samba.org>
Tue, 1 Oct 2013 22:06:25 +0000
(
00:06
+0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/winbindd/idmap_autorid_tdb.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/idmap_autorid_tdb.c
b/source3/winbindd/idmap_autorid_tdb.c
index 23b4bc9fb0fa7349963c28fbd976dc65969d90bb..0d90cf2266f435687f637d24f1faf4603e9aa873 100644
(file)
--- 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;