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:
committed by
Günther Deschner
parent
51d5bebcc1
commit
dd7adbfa8f
@ -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);
|
||||
|
Reference in New Issue
Block a user