Fix bug in threading sample implementation #667

This commit is contained in:
Janos Follath
2017-05-16 10:22:37 +01:00
committed by Simon Butcher
parent 45182a0065
commit 6e876988de
+1 -1
View File
@@ -32,7 +32,7 @@
#if defined(MBEDTLS_THREADING_PTHREAD)
static void threading_mutex_init_pthread( mbedtls_threading_mutex_t *mutex )
{
if( mutex == NULL || mutex->is_valid )
if( mutex == NULL )
return;
mutex->is_valid = pthread_mutex_init( &mutex->mutex, NULL ) == 0;