mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	- Updated error check on optional nextUpdate in CRL
This commit is contained in:
		
							parent
							
								
									c89cf7ceff
								
							
						
					
					
						commit
						635f4b4cf9
					
				@ -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 );
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user