Commit 2a1c5f53 authored by Paul Bakker's avatar Paul Bakker
Browse files

- Minor code cleanup

parent fae618fa
......@@ -289,7 +289,10 @@ static int x509_get_version( unsigned char **p,
ASN1_CONTEXT_SPECIFIC | ASN1_CONSTRUCTED | 0 ) ) != 0 )
{
if( ret == POLARSSL_ERR_ASN1_UNEXPECTED_TAG )
return( *ver = 0 );
{
*ver = 0;
return( 0 );
}
return( ret );
}
......@@ -318,7 +321,10 @@ static int x509_crl_get_version( unsigned char **p,
if( ( ret = asn1_get_int( p, end, ver ) ) != 0 )
{
if( ret == POLARSSL_ERR_ASN1_UNEXPECTED_TAG )
return( *ver = 0 );
{
*ver = 0;
return( 0 );
}
return( POLARSSL_ERR_X509_CERT_INVALID_VERSION + ret );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment