From f8c67345d64ad4b8bcc9f49cf0986bd950337dfb Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Mon, 4 Jul 2022 15:59:36 +0100 Subject: [PATCH] Use the correct mutex type for embOS OS_MUTEX_Lock() is acutally a non-blocking mutex lock, for wc_LockMutex() we need a blocking mutex. Switch to this. --- wolfcrypt/src/wc_port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/wc_port.c b/wolfcrypt/src/wc_port.c index 8a3bc1c29..1be78de15 100644 --- a/wolfcrypt/src/wc_port.c +++ b/wolfcrypt/src/wc_port.c @@ -2270,7 +2270,7 @@ int wolfSSL_CryptHwMutexUnLock(void) int wc_LockMutex(wolfSSL_Mutex* m) { - OS_MUTEX_Lock((OS_MUTEX*) m); + OS_MUTEX_LockBlocked((OS_MUTEX*) m); return 0; }