diff options
author | Andreas Schneider <asn@samba.org> | 2021-03-18 11:37:50 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2021-03-24 00:55:32 +0000 |
commit | dd7adbfa8f277932eeed17eceaaa7713fc23829b (patch) | |
tree | 88225cb8f9522691953153e357a896a95a13b83a /source3/lib/netapi | |
parent | 51d5bebcc156ee9b93937deefc534e44911245a7 (diff) | |
download | samba-dd7adbfa8f277932eeed17eceaaa7713fc23829b.tar.gz |
s3:netapi: Remove workgroup from 'struct libnetapi_ctx'
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r-- | source3/lib/netapi/netapi.c | 6 | ||||
-rw-r--r-- | source3/lib/netapi/netapi_private.h | 1 |
2 files changed, 0 insertions, 7 deletions
diff --git a/source3/lib/netapi/netapi.c b/source3/lib/netapi/netapi.c index 25983ced7ec..a158a7c15c0 100644 --- a/source3/lib/netapi/netapi.c +++ b/source3/lib/netapi/netapi.c @@ -307,12 +307,6 @@ NET_API_STATUS libnetapi_set_workgroup(struct libnetapi_ctx *ctx, { bool ok; - TALLOC_FREE(ctx->workgroup); - ctx->workgroup = talloc_strdup(ctx, workgroup); - if (!ctx->workgroup) { - return W_ERROR_V(WERR_NOT_ENOUGH_MEMORY); - } - ok = cli_credentials_set_domain(ctx->creds, workgroup, CRED_SPECIFIED); if (!ok) { return W_ERROR_V(WERR_INTERNAL_ERROR); diff --git a/source3/lib/netapi/netapi_private.h b/source3/lib/netapi/netapi_private.h index b590be952c4..b02d3ac6819 100644 --- a/source3/lib/netapi/netapi_private.h +++ b/source3/lib/netapi/netapi_private.h @@ -57,7 +57,6 @@ struct libnetapi_private_ctx { struct libnetapi_ctx { char *debuglevel; char *error_string; - char *workgroup; int use_kerberos; int use_ccache; int disable_policy_handle_cache; |