diff options
author | Volker Lendecke <vl@samba.org> | 2018-08-16 10:51:44 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-08-17 11:30:11 +0200 |
commit | c2ea10077715fb2a554a9f39b2ff49338bd8a124 (patch) | |
tree | 854522aa679e6396c94bace54639025232aaf084 /source3/utils/smbcontrol.c | |
parent | f986a73b240ea61df1d4664b9c3c6d0858b17111 (diff) | |
download | samba-c2ea10077715fb2a554a9f39b2ff49338bd8a124.tar.gz |
lib: Pass mem_ctx to state_path()
Fix a confusing API: Many places TALLOC_FREE the path where it's not
clear you have to do it.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/utils/smbcontrol.c')
-rw-r--r-- | source3/utils/smbcontrol.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c index bd89b9ebf0a..6e612e9dd8f 100644 --- a/source3/utils/smbcontrol.c +++ b/source3/utils/smbcontrol.c @@ -1061,7 +1061,7 @@ static bool do_winbind_online(struct tevent_context *ev_ctx, return False; } - db_path = state_path("winbindd_cache.tdb"); + db_path = state_path(talloc_tos(), "winbindd_cache.tdb"); if (db_path == NULL) { return false; } @@ -1099,7 +1099,7 @@ static bool do_winbind_offline(struct tevent_context *ev_ctx, return False; } - db_path = state_path("winbindd_cache.tdb"); + db_path = state_path(talloc_tos(), "winbindd_cache.tdb"); if (db_path == NULL) { return false; } |