Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
## [6.0.2]
- Windows: drop un-needed assert
- EFI: do not send disconnect when not connected

## [6.0.1]
- EFI: prefix internal function
- Windows: add newlines to error messages
- EFI: prefix internal function
- Windows: add newlines to error messages

## [6.0.0]

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0.1
6.0.2
1 change: 0 additions & 1 deletion src/Windows/metee_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/*
* Copyright (C) 2014-2025 Intel Corporation
*/
#include <assert.h>
#include <windows.h>
#include <initguid.h>
#include <winioctl.h>
Expand Down
3 changes: 0 additions & 3 deletions src/Windows/metee_winhelpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/*
* Copyright (C) 2014-2025 Intel Corporation
*/
#include <assert.h>
#include <windows.h>
#include <initguid.h>
#include "helpers.h"
Expand All @@ -13,7 +12,6 @@
#include <Devpkey.h>
#include <Strsafe.h>


/*********************************************************************
** Windows Helper Functions **
**********************************************************************/
Expand Down Expand Up @@ -129,7 +127,6 @@ TEESTATUS EndOverlapped(IN PTEEHANDLE handle, IN EVENTHANDLE evt, IN DWORD milli
}

if (err != WAIT_OBJECT_0) {
assert(WAIT_FAILED == err);
err = GetLastError();
status = Win32ErrorToTee(err);

Expand Down
7 changes: 7 additions & 0 deletions src/uefi/heci_efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,13 @@ EfiTeeHeciUninitialize(
goto End;
}

if (client->connected == FALSE)
{
DBGPRINT(Handle->TeeHandle, "Handle is not connected\n");
status = EFI_SUCCESS;
goto End;
}

SetMem(&disconnectMsg, sizeof(disconnectMsg), 0x0);
SetMem(&disconnectMsgReply, sizeof(disconnectMsgReply), 0x0);

Expand Down