diff options
author | Andreas Schneider <asn@samba.org> | 2019-05-29 16:22:11 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-07-26 01:48:22 +0000 |
commit | 4b9b1dbe9c8c988a39b1318a4f7aac031bc1ea8b (patch) | |
tree | 344a205d4afb1e5eebadb2768779c78ea13b93af /source3/rpcclient | |
parent | baa96ef20945638fb5ee76b03543c7b611e9c7d7 (diff) | |
download | samba-4b9b1dbe9c8c988a39b1318a4f7aac031bc1ea8b.tar.gz |
s3:rpc_client: Return NTSTATUS for init_samr_CryptPassword()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14031
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_samr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c index 8cbf8ab24bd..ccaec1ada40 100644 --- a/source3/rpcclient/cmd_samr.c +++ b/source3/rpcclient/cmd_samr.c @@ -3063,7 +3063,10 @@ static NTSTATUS cmd_samr_setuserinfo_int(struct rpc_pipe_client *cli, return status; } - init_samr_CryptPassword(param, &session_key, &pwd_buf); + status = init_samr_CryptPassword(param, &session_key, &pwd_buf); + if (!NT_STATUS_IS_OK(status)) { + return status; + } init_samr_CryptPasswordEx(param, &session_key, &pwd_buf_ex); nt_lm_owf_gen(param, nt_hash, lm_hash); |