mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-02 04:59:39 -05:00
serial can be longer than ber_int_t (ITS#6460)
This commit is contained in:
parent
ed92b02856
commit
ee156cfd7a
1 changed files with 2 additions and 1 deletions
|
|
@ -545,7 +545,8 @@ tlsg_x509_cert_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…
Reference in a new issue