1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

Add NetApiBufferFree() to libnetapi.

Guenther
(This used to be commit c49196954d)
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;
}