- Updated error check on optional nextUpdate in CRL

This commit is contained in:
Paul Bakker 2009-07-20 20:34:41 +00:00
parent c89cf7ceff
commit 635f4b4cf9

View File

@ -1323,7 +1323,9 @@ int x509parse_crl( x509_crl *chain, unsigned char *buf, int buflen )
if( ( ret = x509_get_UTCTime( &p, end, &crl->next_update ) ) != 0 ) if( ( ret = x509_get_UTCTime( &p, end, &crl->next_update ) ) != 0 )
{ {
if ( ret != POLARSSL_ERR_ASN1_UNEXPECTED_TAG ) { if ( ret != ( POLARSSL_ERR_X509_CERT_INVALID_DATE |
POLARSSL_ERR_ASN1_UNEXPECTED_TAG ) )
{
x509_crl_free( crl ); x509_crl_free( crl );
return( ret ); return( ret );
} }