s4:libcli/smb2: don't try to check the signing if we got NT_STATUS_USER_SESSION_DELETED
[amitay/samba.git] / source4 / libcli / smb2 / transport.c
index 538cb5f1deb657aa251e0752997171da2daf02d6..a1653e39746788d03b02157e9c27695b83c5d715 100644 (file)
@@ -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)) {