Merge pull request #2271 from miyazakh/fix_nomutexlock_after_free

avoid mutex lock test after freeing it on NetBSD
This commit is contained in:
Chris Conlon
2019-06-06 09:27:18 -06:00
committed by GitHub

View File

@@ -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;