1
0
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:
Günther Deschner
2008-07-17 19:06:02 +02:00
parent bbdf38d1d7
commit 352d40c066
3 changed files with 22 additions and 0 deletions

View File

@ -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);
}