mbed TLS upgraded to 2.6.0
Fork of mbedtls by
Diff: library/threading.c
- Revision:
- 2:bbdeda018a3c
- Parent:
- 0:cdf462088d13
diff -r 9ebc941037d5 -r bbdeda018a3c library/threading.c --- a/library/threading.c Fri Sep 29 18:41:59 2017 +0100 +++ b/library/threading.c Fri Sep 29 19:50:30 2017 +0100 @@ -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;