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

s3-rpc_server: Check NTSTATUS return value from netlogon_creds_aes_decrypt()

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Andrew Bartlett 2019-08-16 14:05:38 +12:00 committed by Andreas Schneider
parent d515b255aa
commit 2f827bec8c

View File

@ -1369,14 +1369,16 @@ NTSTATUS _netr_ServerPasswordSet2(struct pipes_struct *p,
SIVAL(password_buf.data, 512, r->in.new_password->length);
if (creds->negotiate_flags & NETLOGON_NEG_SUPPORTS_AES) {
netlogon_creds_aes_decrypt(creds, password_buf.data, 516);
status = netlogon_creds_aes_decrypt(creds,
password_buf.data,
516);
} else {
status = netlogon_creds_arcfour_crypt(creds,
password_buf.data,
516);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
}
if (!NT_STATUS_IS_OK(status)) {
return status;
}
if (!decode_pw_buffer(p->mem_ctx,