mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-08 08:02:16 -05:00
ITS#9383 remove assert in certificateListValidate
This commit is contained in:
parent
87158469eb
commit
265d362f27
1 changed files with 1 additions and 2 deletions
|
|
@ -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 a new issue