diff options
author | bubulle <bubulle@alioth.debian.org> | 2008-11-01 11:09:46 +0000 |
---|---|---|
committer | bubulle <bubulle@alioth.debian.org> | 2008-11-01 11:09:46 +0000 |
commit | a2b71a0141763c20552bb45eeb4cb78c4b513118 (patch) | |
tree | 85b64d98387145ea4e00c1b529e1820542a979a3 /source/lib/netapi/netapi.c | |
parent | 2203bd59918d6d70515f9dad601cb5c0ef098092 (diff) | |
download | samba-a2b71a0141763c20552bb45eeb4cb78c4b513118.tar.gz |
Revert the merge of 3.3.0~pre2 in upstream branch
git-svn-id: svn://svn.debian.org/svn/pkg-samba/branches/samba/upstream@2200 fc4039ab-9d04-0410-8cac-899223bdd6b0
Diffstat (limited to 'source/lib/netapi/netapi.c')
-rw-r--r-- | source/lib/netapi/netapi.c | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/source/lib/netapi/netapi.c b/source/lib/netapi/netapi.c index 889388173f..cf1be00849 100644 --- a/source/lib/netapi/netapi.c +++ b/source/lib/netapi/netapi.c @@ -30,30 +30,8 @@ static bool libnetapi_initialized = false; /**************************************************************** ****************************************************************/ -static NET_API_STATUS libnetapi_init_private_context(struct libnetapi_ctx *ctx) -{ - struct libnetapi_private_ctx *priv; - - if (!ctx) { - return W_ERROR_V(WERR_INVALID_PARAM); - } - - priv = TALLOC_ZERO_P(ctx, struct libnetapi_private_ctx); - if (!priv) { - return W_ERROR_V(WERR_NOMEM); - } - - ctx->private_data = priv; - - return NET_API_STATUS_SUCCESS; -} - -/**************************************************************** -****************************************************************/ - NET_API_STATUS libnetapi_init(struct libnetapi_ctx **context) { - NET_API_STATUS status; struct libnetapi_ctx *ctx = NULL; char *krb5_cc_env = NULL; @@ -118,12 +96,6 @@ NET_API_STATUS libnetapi_init(struct libnetapi_ctx **context) return W_ERROR_V(WERR_NOMEM); } - status = libnetapi_init_private_context(ctx); - if (status != 0) { - TALLOC_FREE(frame); - return status; - } - libnetapi_initialized = true; *context = stat_ctx = ctx; @@ -153,8 +125,6 @@ NET_API_STATUS libnetapi_free(struct libnetapi_ctx *ctx) return NET_API_STATUS_SUCCESS; } - libnetapi_samr_free(ctx); - libnetapi_shutdown_cm(ctx); if (ctx->krb5_cc_env) { @@ -309,33 +279,6 @@ const char *libnetapi_get_error_string(struct libnetapi_ctx *ctx, /**************************************************************** ****************************************************************/ -NET_API_STATUS NetApiBufferAllocate(uint32_t byte_count, - void **buffer) -{ - void *buf = NULL; - - if (!buffer) { - return W_ERROR_V(WERR_INSUFFICIENT_BUFFER); - } - - if (byte_count == 0) { - goto done; - } - - buf = talloc_size(NULL, byte_count); - if (!buf) { - return W_ERROR_V(WERR_NOMEM); - } - - done: - *buffer = buf; - - return NET_API_STATUS_SUCCESS; -} - -/**************************************************************** -****************************************************************/ - NET_API_STATUS NetApiBufferFree(void *buffer) { if (!buffer) { |