mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
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
This commit is contained in:
parent
dbd3293246
commit
e74081ce5d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user