]> git.sur5r.net Git - openldap/commitdiff
Fix attributeCertificateValidate
authorHoward Chu <hyc@openldap.org>
Sat, 1 Aug 2009 01:11:15 +0000 (01:11 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 1 Aug 2009 01:11:15 +0000 (01:11 +0000)
servers/slapd/schema_init.c

index 164c348b8c9e598b3bfaaac4887b1ec6f55b42e1..253cf9790ea152bcfd6dd48ebe49332602ab92fa 100644 (file)
@@ -389,7 +389,7 @@ attributeCertificateValidate( Syntax *syntax, struct berval *in )
        if ( tag != LBER_SEQUENCE ) return LDAP_INVALID_SYNTAX;
        ber_skip_data( ber, len );
 
-       ber_peek_tag( ber, &len );
+       tag = ber_peek_tag( ber, &len );
 
        if ( tag == LBER_BITSTRING ) {  /* issuerUniqueID */
                tag = ber_skip_tag( ber, &len );