diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-09-28 06:43:51 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-09-28 17:29:11 +0200 |
commit | 28b48f84984684af91c3a1e55d2054e57db0084c (patch) | |
tree | 53769bf4e2ae5a3dfab4ad7b34695b822b525190 | |
parent | 417c16e4e6d6a51171f8d2982e8bf9c4d602e058 (diff) | |
download | samba-28b48f84984684af91c3a1e55d2054e57db0084c.tar.gz samba-28b48f84984684af91c3a1e55d2054e57db0084c.tar.bz2 samba-28b48f84984684af91c3a1e55d2054e57db0084c.zip |
s4:libcli/smb2: don't try to check the signing if we got NT_STATUS_USER_SESSION_DELETED
metze
-rw-r--r-- | source4/libcli/smb2/transport.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/libcli/smb2/transport.c b/source4/libcli/smb2/transport.c index 538cb5f1de..a1653e3974 100644 --- a/source4/libcli/smb2/transport.c +++ b/source4/libcli/smb2/transport.c @@ -322,7 +322,8 @@ static NTSTATUS smb2_transport_finish_recv(void *private_data, DATA_BLOB blob) req->in.body_size = req->in.size - (SMB2_HDR_BODY+NBT_HDR_SIZE); } - if (req->session && req->session->signing_active) { + if (req->session && req->session->signing_active && + !NT_STATUS_EQUAL(req->status, NT_STATUS_USER_SESSION_DELETED)) { status = smb2_check_signature(&req->in, req->session->session_key); if (!NT_STATUS_IS_OK(status)) { |