Avoid static buffer in debug module
Caused issues in threading situations
This commit is contained in:
parent
96fb685e31
commit
d23f593737
3 changed files with 31 additions and 11 deletions
|
@ -48,7 +48,7 @@ void debug_print_msg_threshold( int threshold, int level, char *file, int line,
|
|||
mbedtls_debug_set_threshold( threshold );
|
||||
mbedtls_ssl_conf_dbg( &conf, string_debug, &buffer);
|
||||
|
||||
mbedtls_debug_print_msg( &ssl, level, file, line,
|
||||
mbedtls_debug_print_msg_free( &ssl, level, file, line,
|
||||
mbedtls_debug_fmt("Text message, 2 == %d", 2 ) );
|
||||
|
||||
TEST_ASSERT( strcmp( buffer.buf, result_str ) == 0 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue