diff options
author | Andreas Schneider <asn@samba.org> | 2019-05-29 17:16:26 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-07-26 01:48:22 +0000 |
commit | 7915a48e53c8f72ba56da2f433427b961feeb16f (patch) | |
tree | bcfa03e01ce21d93522516c0ab75e9f46b44df65 /source3/rpcclient | |
parent | 4b9b1dbe9c8c988a39b1318a4f7aac031bc1ea8b (diff) | |
download | samba-7915a48e53c8f72ba56da2f433427b961feeb16f.tar.gz |
s3:rpc_client: Return NTSTATUS for init_samr_CryptPasswordEx()
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 ccaec1ada40..b1b7c06515c 100644 --- a/source3/rpcclient/cmd_samr.c +++ b/source3/rpcclient/cmd_samr.c @@ -3067,7 +3067,10 @@ static NTSTATUS cmd_samr_setuserinfo_int(struct rpc_pipe_client *cli, if (!NT_STATUS_IS_OK(status)) { return status; } - init_samr_CryptPasswordEx(param, &session_key, &pwd_buf_ex); + status = init_samr_CryptPasswordEx(param, &session_key, &pwd_buf_ex); + if (!NT_STATUS_IS_OK(status)) { + return status; + } nt_lm_owf_gen(param, nt_hash, lm_hash); switch (level) { |