git.samba.org
/
amitay
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib: Pass mem_ctx to state_path()
[amitay/samba.git]
/
source3
/
winbindd
/
idmap_tdb.c
diff --git
a/source3/winbindd/idmap_tdb.c
b/source3/winbindd/idmap_tdb.c
index 24ef11836e1107865b3aca579aa45f37f6d69a60..b1f908e2d62a287d2ec99a94f5f31868b513aa0b 100644
(file)
--- a/
source3/winbindd/idmap_tdb.c
+++ b/
source3/winbindd/idmap_tdb.c
@@
-310,7
+310,7
@@
static NTSTATUS idmap_tdb_open_db(struct idmap_domain *dom)
mem_ctx = talloc_stackframe();
/* use the old database if present */
- tdbfile = state_path("winbindd_idmap.tdb");
+ tdbfile = state_path(
talloc_tos(),
"winbindd_idmap.tdb");
if (!tdbfile) {
DEBUG(0, ("Out of memory!\n"));
ret = NT_STATUS_NO_MEMORY;