diff --git a/wolfcrypt/src/wc_port.c b/wolfcrypt/src/wc_port.c index 09ff75b1f..314e5a65f 100644 --- a/wolfcrypt/src/wc_port.c +++ b/wolfcrypt/src/wc_port.c @@ -2845,6 +2845,11 @@ int wolfSSL_HwPkMutexUnLock(void) int wc_InitMutex(wolfSSL_Mutex* m) { int i; + + if(!osKernelRunning()) { + return 0; + } + for (i=0; i