commit | 1cdf0fd2d5a79f380847129b6778bb6e5635bace | [log] [tgz] |
---|---|---|
author | Janos Follath <janos.follath@arm.com> | Fri Oct 28 14:59:12 2016 +0100 |
committer | Simon Butcher <simon.butcher@arm.com> | Mon May 15 13:22:51 2017 +0100 |
tree | 54db71b51670214cb184b77695ca9bdd7d9af001 | |
parent | 83da72461620d305f2112c74e47bdc8c83d1cb9d [diff] |
Fix bug in threading sample implementation #667
diff --git a/library/threading.c b/library/threading.c index 83ec01a..0758675 100644 --- a/library/threading.c +++ b/library/threading.c
@@ -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;