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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user