From ce52b58da0aaf1f6132b69a06d4033c18a13675d Mon Sep 17 00:00:00 2001 From: Darryl Green Date: Mon, 27 Nov 2017 17:12:14 +0000 Subject: [PATCH] Fix braces in mbedtls_memory_buffer_alloc_status() --- ChangeLog | 1 + library/memory_buffer_alloc.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0c247f982..e9cdcaa96 100644 --- a/ChangeLog +++ b/ChangeLog @@ -51,6 +51,7 @@ Changes * Improve robustness of mbedtls_ssl_derive_keys against the use of HMAC functions with non-HMAC ciphersuites. Independently contributed by Jiayuan Chen in #1377. Fixes #1437. + * Fix braces in mbedtls_memory_buffer_alloc_status(). Found by sbranden, #552. = mbed TLS 2.1.11 branch released 2018-03-16 diff --git a/library/memory_buffer_alloc.c b/library/memory_buffer_alloc.c index 1cfc27ca6..eb555f332 100644 --- a/library/memory_buffer_alloc.c +++ b/library/memory_buffer_alloc.c @@ -522,7 +522,9 @@ void mbedtls_memory_buffer_alloc_status() heap.alloc_count, heap.free_count ); if( heap.first->next == NULL ) + { mbedtls_fprintf( stderr, "All memory de-allocated in stack buffer\n" ); + } else { mbedtls_fprintf( stderr, "Memory currently allocated:\n" );