1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Style fixes in pem, x509_crl and buf_alloc

This commit is contained in:
Andres Amaya Garcia
2017-07-06 10:06:58 +01:00
committed by Andres Amaya Garcia
parent 8ec3bfe180
commit f1ee63562a
3 changed files with 5 additions and 4 deletions

View File

@ -435,7 +435,8 @@ int mbedtls_pem_write_buffer( const char *header, const char *footer,
return( MBEDTLS_ERR_BASE64_BUFFER_TOO_SMALL );
}
if( use_len != 0 && ( encode_buf = mbedtls_calloc( 1, use_len ) ) == NULL )
if( use_len != 0 &&
( ( encode_buf = mbedtls_calloc( 1, use_len ) ) == NULL ) )
return( MBEDTLS_ERR_PEM_ALLOC_FAILED );
if( ( ret = mbedtls_base64_encode( encode_buf, use_len, &use_len, der_data,