mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
netapi: add libnetapi_samr_free().
Guenther
(This used to be commit 3228088a09
)
This commit is contained in:
@ -153,6 +153,8 @@ NET_API_STATUS libnetapi_free(struct libnetapi_ctx *ctx)
|
||||
return NET_API_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
libnetapi_samr_free(ctx);
|
||||
|
||||
libnetapi_shutdown_cm(ctx);
|
||||
|
||||
if (ctx->krb5_cc_env) {
|
||||
|
@ -70,5 +70,6 @@ void libnetapi_samr_close_builtin_handle(struct libnetapi_ctx *ctx,
|
||||
struct policy_handle *handle);
|
||||
void libnetapi_samr_close_connect_handle(struct libnetapi_ctx *ctx,
|
||||
struct policy_handle *handle);
|
||||
void libnetapi_samr_free(struct libnetapi_ctx *ctx);
|
||||
|
||||
#endif
|
||||
|
@ -298,3 +298,22 @@ void libnetapi_samr_close_connect_handle(struct libnetapi_ctx *ctx,
|
||||
|
||||
ZERO_STRUCT(priv->samr.connect_handle);
|
||||
}
|
||||
|
||||
/****************************************************************
|
||||
****************************************************************/
|
||||
|
||||
void libnetapi_samr_free(struct libnetapi_ctx *ctx)
|
||||
{
|
||||
struct libnetapi_private_ctx *priv;
|
||||
|
||||
if (!ctx->private_data) {
|
||||
return;
|
||||
}
|
||||
|
||||
priv = talloc_get_type_abort(ctx->private_data,
|
||||
struct libnetapi_private_ctx);
|
||||
|
||||
libnetapi_samr_close_domain_handle(ctx, &priv->samr.domain_handle);
|
||||
libnetapi_samr_close_builtin_handle(ctx, &priv->samr.builtin_handle);
|
||||
libnetapi_samr_close_connect_handle(ctx, &priv->samr.connect_handle);
|
||||
}
|
||||
|
Reference in New Issue
Block a user