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

s3:netapi: Remove password 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:03 +01:00
committed by Günther Deschner
parent d94053f9d8
commit 51d5bebcc1
2 changed files with 0 additions and 7 deletions

View File

@ -294,12 +294,6 @@ NET_API_STATUS libnetapi_set_password(struct libnetapi_ctx *ctx,
return W_ERROR_V(WERR_INVALID_PARAMETER);
}
TALLOC_FREE(ctx->password);
ctx->password = talloc_strdup(ctx, password);
if (!ctx->password) {
return W_ERROR_V(WERR_NOT_ENOUGH_MEMORY);
}
ok = cli_credentials_set_password(ctx->creds, password, CRED_SPECIFIED);
if (!ok) {
return W_ERROR_V(WERR_INTERNAL_ERROR);