diff options
author | Jeremy Allison <jra@samba.org> | 2017-07-24 16:14:00 -0700 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2017-08-17 10:38:22 +0200 |
commit | dbc050b7e888373dd43b56d1c42756d73047b98c (patch) | |
tree | b22bc41b2d05f6f114b4dd0dad2dc7a92f58abf3 /libcli/auth | |
parent | eb2d10df8ad7ed80de8c83e03618ae6624cb03cf (diff) | |
download | samba-dbc050b7e888373dd43b56d1c42756d73047b98c.tar.gz |
lib: auth: Store the netlogon_creds_cli_global_db pointer on the NULL context.
Now we shutdown correctly it doesn't need the talloc_autofree_context().
Last use of talloc_autofree_context() ourside the talloc test code !
Please don't add it ever again :-).
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12932
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jul 27 01:34:12 CEST 2017 on sn-devel-144
(cherry picked from commit e74081ce5d0f81024f7384816c589e5bc28baf80)
Diffstat (limited to 'libcli/auth')
-rw-r--r-- | libcli/auth/netlogon_creds_cli.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcli/auth/netlogon_creds_cli.c b/libcli/auth/netlogon_creds_cli.c index f5350f210b3..526ee3962fc 100644 --- a/libcli/auth/netlogon_creds_cli.c +++ b/libcli/auth/netlogon_creds_cli.c @@ -208,7 +208,7 @@ NTSTATUS netlogon_creds_cli_set_global_db(struct db_context **db) return NT_STATUS_INVALID_PARAMETER_MIX; } - netlogon_creds_cli_global_db = talloc_move(talloc_autofree_context(), db); + netlogon_creds_cli_global_db = talloc_move(NULL, db); return NT_STATUS_OK; } @@ -226,7 +226,7 @@ NTSTATUS netlogon_creds_cli_open_global_db(struct loadparm_context *lp_ctx) return NT_STATUS_NO_MEMORY; } - global_db = dbwrap_local_open(talloc_autofree_context(), lp_ctx, + global_db = dbwrap_local_open(NULL, lp_ctx, fname, 0, TDB_CLEAR_IF_FIRST|TDB_INCOMPATIBLE_HASH, O_RDWR|O_CREAT, |