From 28b48f84984684af91c3a1e55d2054e57db0084c Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 28 Sep 2011 06:43:51 +0200 Subject: s4:libcli/smb2: don't try to check the signing if we got NT_STATUS_USER_SESSION_DELETED metze --- source4/libcli/smb2/transport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4') 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)) { -- cgit