mirror of
https://github.com/samba-team/samba.git
synced 2025-01-24 02:04:21 +03:00
libcli/smb: don't overwrite status code
The original commit c5cd22b5bbce724dcd68fe94320382b3f772cabf from bug 9175 never worked, as the preceeding signing check overwrote the status variable. Bug: https://bugzilla.samba.org/show_bug.cgi?id=9175 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Tue Nov 13 17:28:45 CET 2018 on sn-devel-144 (cherry picked from commit 5a8583ed701be97c33a20b2a20f6bbb8ac2f8e99)
This commit is contained in:
parent
739ce2c733
commit
2332c99cba
@ -3908,15 +3908,17 @@ static NTSTATUS smb2cli_conn_dispatch_incoming(struct smbXcli_conn *conn,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (signing_key) {
|
if (signing_key) {
|
||||||
status = smb2_signing_check_pdu(*signing_key,
|
NTSTATUS signing_status;
|
||||||
|
|
||||||
|
signing_status = smb2_signing_check_pdu(*signing_key,
|
||||||
state->conn->protocol,
|
state->conn->protocol,
|
||||||
&cur[1], 3);
|
&cur[1], 3);
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
if (!NT_STATUS_IS_OK(signing_status)) {
|
||||||
/*
|
/*
|
||||||
* If the signing check fails, we disconnect
|
* If the signing check fails, we disconnect
|
||||||
* the connection.
|
* the connection.
|
||||||
*/
|
*/
|
||||||
return status;
|
return signing_status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
^samba3.smb2.session krb5.expire_disconnect\(ad_dc\)
|
|
||||||
^samba3.smb2.session krb5.expire_disconnect\(ad_member\)
|
|
Loading…
x
Reference in New Issue
Block a user