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:
parent
ab216a1b4e
commit
a01dc30db7
@ -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;
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user