mirror of
https://github.com/samba-team/samba.git
synced 2025-07-31 20:22:15 +03:00
netapi: add libnetapi_samr_free().
Guenther
(This used to be commit 3228088a09
)
This commit is contained in:
@ -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