From a252af760f35f63da49ba24c58d60224d2a26793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Fri, 27 Mar 2015 16:15:55 +0100 Subject: [PATCH] Minor source simplification --- library/x509_crt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/library/x509_crt.c b/library/x509_crt.c index 7d12bcad01..013f07078c 100644 --- a/library/x509_crt.c +++ b/library/x509_crt.c @@ -723,17 +723,15 @@ static int x509_crt_parse_der_core( x509_crt *crt, const unsigned char *buf, #if !defined(POLARSSL_X509_ALLOW_EXTENSIONS_NON_V3) if( crt->version == 3 ) - { #endif + { ret = x509_get_crt_ext( &p, end, crt ); if( ret != 0 ) { x509_crt_free( crt ); return( ret ); } -#if !defined(POLARSSL_X509_ALLOW_EXTENSIONS_NON_V3) } -#endif if( p != end ) {