diff options
author | Andreas Schneider <asn@samba.org> | 2021-03-18 11:37:03 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2021-03-24 00:55:32 +0000 |
commit | 51d5bebcc156ee9b93937deefc534e44911245a7 (patch) | |
tree | 930f89373b761285e4f93855a6afb2981fb96b63 /source3/lib/netapi | |
parent | d94053f9d8b1fdce61e90d3942e75b02e2d3209c (diff) | |
download | samba-51d5bebcc156ee9b93937deefc534e44911245a7.tar.gz |
s3:netapi: Remove password from 'struct libnetapi_ctx'
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r-- | source3/lib/netapi/netapi.c | 6 | ||||
-rw-r--r-- | source3/lib/netapi/netapi_private.h | 1 |
2 files changed, 0 insertions, 7 deletions
diff --git a/source3/lib/netapi/netapi.c b/source3/lib/netapi/netapi.c index 8d5c8c85f5a..25983ced7ec 100644 --- a/source3/lib/netapi/netapi.c +++ b/source3/lib/netapi/netapi.c @@ -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); diff --git a/source3/lib/netapi/netapi_private.h b/source3/lib/netapi/netapi_private.h index 3a1f8c48846..b590be952c4 100644 --- a/source3/lib/netapi/netapi_private.h +++ b/source3/lib/netapi/netapi_private.h @@ -58,7 +58,6 @@ struct libnetapi_ctx { char *debuglevel; char *error_string; char *workgroup; - char *password; int use_kerberos; int use_ccache; int disable_policy_handle_cache; |