mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
Merge pull request #2271 from miyazakh/fix_nomutexlock_after_free
avoid mutex lock test after freeing it on NetBSD
This commit is contained in:
@@ -23495,10 +23495,12 @@ int mutex_test(void)
|
||||
return -9904;
|
||||
if (wc_FreeMutex(&m) != 0)
|
||||
return -9905;
|
||||
#ifndef WOLFSSL_NO_MUTEXLOCK_AFTER_FREE
|
||||
if (wc_LockMutex(&m) != BAD_MUTEX_E)
|
||||
return -9906;
|
||||
if (wc_UnLockMutex(&m) != BAD_MUTEX_E)
|
||||
return -9907;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user