1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

s3:netapi: Remove workgroup from 'struct libnetapi_ctx'

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
Andreas Schneider
2021-03-18 11:37:50 +01:00
committed by Günther Deschner
parent 51d5bebcc1
commit dd7adbfa8f
2 changed files with 0 additions and 7 deletions

View 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);