mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-05 13:40:08 +08:00
ITS#9383 remove assert in certificateListValidate
This commit is contained in:
parent
87158469eb
commit
265d362f27
@ -416,8 +416,7 @@ certificateListValidate( Syntax *syntax, struct berval *in )
|
||||
/* Optional version */
|
||||
if ( tag == LBER_INTEGER ) {
|
||||
tag = ber_get_int( ber, &version );
|
||||
assert( tag == LBER_INTEGER );
|
||||
if ( version != SLAP_X509_V2 ) return LDAP_INVALID_SYNTAX;
|
||||
if ( tag != LBER_INTEGER || version != SLAP_X509_V2 ) return LDAP_INVALID_SYNTAX;
|
||||
}
|
||||
tag = ber_skip_tag( ber, &len ); /* Signature Algorithm */
|
||||
if ( tag != LBER_SEQUENCE ) return LDAP_INVALID_SYNTAX;
|
||||
|
Loading…
Reference in New Issue
Block a user