1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

Add NetApiBufferFree() to libnetapi.

Guenther
(This used to be commit c49196954d38f0c2851abbfe25086cd6fe660a2e)
This commit is contained in:
Günther Deschner 2008-01-08 11:53:38 +01:00
parent ab216a1b4e
commit a01dc30db7
2 changed files with 19 additions and 0 deletions

View File

@ -224,3 +224,17 @@ const char *libnetapi_get_error_string(struct libnetapi_ctx *ctx)
{
return ctx->error_string;
}
/****************************************************************
****************************************************************/
NET_API_STATUS NetApiBufferFree(void *buffer)
{
if (!buffer) {
return W_ERROR_V(WERR_INSUFFICIENT_BUFFER);
}
talloc_free(buffer);
return NET_API_STATUS_SUCCESS;
}

View File

@ -53,6 +53,11 @@ const char *libnetapi_get_error_string(struct libnetapi_ctx *ctx);
/****************************************************************
****************************************************************/
NET_API_STATUS NetApiBufferFree(void *buffer);
/****************************************************************
****************************************************************/
/* wkssvc */
NET_API_STATUS NetJoinDomain(const char *server,
const char *domain,