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