]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:netapi: Remove workgroup from 'struct libnetapi_ctx'
authorAndreas Schneider <asn@samba.org>
Thu, 18 Mar 2021 10:37:50 +0000 (11:37 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 24 Mar 2021 00:55:32 +0000 (00:55 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/lib/netapi/netapi.c
source3/lib/netapi/netapi_private.h

index 25983ced7ece60487168dc9a8c816ca6150f1ef3..a158a7c15c0a9c21b6cc7ffdaf7a381961953294 100644 (file)
@@ -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);
index b590be952c43f77e9713100f41e01c344c74fde6..b02d3ac681906a31b78da0b70ad6deff0d57ada1 100644 (file)
@@ -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;