mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-04-18 15:20:35 +08:00
skip the serial, whatever its length (ITS#6460)
This commit is contained in:
parent
837320eaac
commit
797387c4ef
@ -1677,7 +1677,8 @@ x509_cert_get_dn( struct berval *cert, struct berval *dn, int get_subject )
|
||||
tag = ber_skip_tag( ber, &len ); /* Context + Constructed (version) */
|
||||
if ( tag == 0xa0 ) /* Version is optional */
|
||||
tag = ber_get_int( ber, &i ); /* Int: Version */
|
||||
tag = ber_get_int( ber, &i ); /* Int: Serial */
|
||||
tag = ber_skip_tag( ber, &len ); /* Int: Serial (can be longer than ber_int_t) */
|
||||
ber_skip_data( ber, len );
|
||||
tag = ber_skip_tag( ber, &len ); /* Sequence: Signature */
|
||||
ber_skip_data( ber, len );
|
||||
if ( !get_subject ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user