mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +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;
|
return -9904;
|
||||||
if (wc_FreeMutex(&m) != 0)
|
if (wc_FreeMutex(&m) != 0)
|
||||||
return -9905;
|
return -9905;
|
||||||
|
#ifndef WOLFSSL_NO_MUTEXLOCK_AFTER_FREE
|
||||||
if (wc_LockMutex(&m) != BAD_MUTEX_E)
|
if (wc_LockMutex(&m) != BAD_MUTEX_E)
|
||||||
return -9906;
|
return -9906;
|
||||||
if (wc_UnLockMutex(&m) != BAD_MUTEX_E)
|
if (wc_UnLockMutex(&m) != BAD_MUTEX_E)
|
||||||
return -9907;
|
return -9907;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user