diff options
author | Jeremy Allison <jra@samba.org> | 2017-07-24 14:49:47 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-07-26 21:35:22 +0200 |
commit | 4cc104d015bdfeb631c7c8f5252fc31727a128ca (patch) | |
tree | 9fc57b568b85d6d129533c66d7a27d16732c9278 /libcli/auth | |
parent | 74b589799e794cc8872a7d3845ced9f5087a8366 (diff) | |
download | samba-4cc104d015bdfeb631c7c8f5252fc31727a128ca.tar.gz |
lib: auth: Add a shutdown function for netlogon_creds_cli_global_db.
Will allow us to move off the talloc_autofree_context().
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>
Diffstat (limited to 'libcli/auth')
-rw-r--r-- | libcli/auth/netlogon_creds_cli.c | 5 | ||||
-rw-r--r-- | libcli/auth/netlogon_creds_cli.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libcli/auth/netlogon_creds_cli.c b/libcli/auth/netlogon_creds_cli.c index 6b32c653e2f..f5350f210b3 100644 --- a/libcli/auth/netlogon_creds_cli.c +++ b/libcli/auth/netlogon_creds_cli.c @@ -244,6 +244,11 @@ NTSTATUS netlogon_creds_cli_open_global_db(struct loadparm_context *lp_ctx) return NT_STATUS_OK; } +void netlogon_creds_cli_close_global_db(void) +{ + TALLOC_FREE(netlogon_creds_cli_global_db); +} + NTSTATUS netlogon_creds_cli_context_global(struct loadparm_context *lp_ctx, struct messaging_context *msg_ctx, const char *client_account, diff --git a/libcli/auth/netlogon_creds_cli.h b/libcli/auth/netlogon_creds_cli.h index cecb0e605c4..32902f103a9 100644 --- a/libcli/auth/netlogon_creds_cli.h +++ b/libcli/auth/netlogon_creds_cli.h @@ -32,6 +32,7 @@ struct db_context; NTSTATUS netlogon_creds_cli_set_global_db(struct db_context **db); NTSTATUS netlogon_creds_cli_open_global_db(struct loadparm_context *lp_ctx); +void netlogon_creds_cli_close_global_db(void); NTSTATUS netlogon_creds_cli_context_global(struct loadparm_context *lp_ctx, struct messaging_context *msg_ctx, |