1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-20 16:23:51 +03:00

Add NetApiBufferFree() to libnetapi.

Guenther
This commit is contained in:
Günther Deschner
2008-01-08 11:53:38 +01:00
parent ba2b8a310e
commit c49196954d
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;
}