Skip to content

Commit

Permalink
Minor style improvement
Browse files Browse the repository at this point in the history
Co-authored-by: Hanno Becker <[email protected]>
Signed-off-by: Nicola Di Lieto <[email protected]>
  • Loading branch information
ndilieto and Hanno Becker committed May 28, 2020
1 parent 4dbe567 commit 2e6097c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions library/x509_crt.c
Original file line number Diff line number Diff line change
Expand Up @@ -954,13 +954,12 @@ static int x509_get_crt_ext( unsigned char **p,
*/
ret = mbedtls_oid_get_x509_ext_type( &extn_oid, &ext_type );

if( ret != 0 )
{
if( ret != 0 ) {
/* Give the callback (if any) a chance to handle the extension */
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;
}
Expand Down

0 comments on commit 2e6097c

Please sign in to comment.