summaryrefslogtreecommitdiff
path: root/thirdparty/mbedtls/library/pem.c
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2019-02-16 17:19:46 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2019-02-20 01:30:32 +0100
commit2e495c73d691391c763b79d11ad3c74504a85519 (patch)
treed8b40cc435eec65f51260ddd2c2bf18ca2527774 /thirdparty/mbedtls/library/pem.c
parentaa5b99821b23d74eafb49f4b0d2d86fe693a903c (diff)
Bump mbedTLS to version 2.16 (LTS version)
Diffstat (limited to 'thirdparty/mbedtls/library/pem.c')
-rw-r--r--thirdparty/mbedtls/library/pem.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/thirdparty/mbedtls/library/pem.c b/thirdparty/mbedtls/library/pem.c
index 6069a23dec..897c8a0d6f 100644
--- a/thirdparty/mbedtls/library/pem.c
+++ b/thirdparty/mbedtls/library/pem.c
@@ -423,9 +423,11 @@ int mbedtls_pem_read_buffer( mbedtls_pem_context *ctx, const char *header, const
void mbedtls_pem_free( mbedtls_pem_context *ctx )
{
- if( ctx->buf != NULL )
+ if ( ctx->buf != NULL )
+ {
mbedtls_platform_zeroize( ctx->buf, ctx->buflen );
- mbedtls_free( ctx->buf );
+ mbedtls_free( ctx->buf );
+ }
mbedtls_free( ctx->info );
mbedtls_platform_zeroize( ctx, sizeof( mbedtls_pem_context ) );