From 2c3a91739365305299f49da201552d35095a860f Mon Sep 17 00:00:00 2001 From: Nicola Di Lieto Date: Thu, 28 May 2020 17:20:42 +0200 Subject: [PATCH] Minor style improvement Co-authored-by: Hanno Becker Signed-off-by: Nicola Di Lieto --- library/x509_crt.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/library/x509_crt.c b/library/x509_crt.c index 2e2fb24d5..554352291 100644 --- a/library/x509_crt.c +++ b/library/x509_crt.c @@ -957,10 +957,11 @@ static int x509_get_crt_ext( unsigned char **p, if( ret != 0 ) { /* Give the callback (if any) a chance to handle the extension */ - if( cb != NULL ) { + if( cb != NULL ) + { ret = cb( crt, &extn_oid, is_critical, *p, end_ext_octet ); - if ( ret != 0 ) - return ( MBEDTLS_ERR_X509_INVALID_EXTENSIONS + ret ); + if( ret != 0 ) + return( MBEDTLS_ERR_X509_INVALID_EXTENSIONS + ret ); *p = end_ext_octet; continue; }