git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85684de
)
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 08:49:18 +0000
(10:49 +0200)
Signed-off-by: Michael Adam <obnox@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 c4a7b6c78e85e513a1b5c0594d51d82d6566fead..ca84b2b3c363be96149cdefd65732e061cfdcff0 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;