]> git.sur5r.net Git - openldap/commitdiff
Fix previous commit - must fully init newAVA
authorHoward Chu <hyc@openldap.org>
Tue, 30 Apr 2002 14:43:05 +0000 (14:43 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 30 Apr 2002 14:43:05 +0000 (14:43 +0000)
libraries/libldap/getdn.c

index 3b188eb20350c488c2d469f3f348255f216424fc..05c370bf8e18d0b4cc2589703b877e14f20cb61b 100644 (file)
@@ -3382,6 +3382,8 @@ ldap_X509dn2bv( void *x509_name, struct berval *bv, LDAPDN_rewrite_func *func,
                        k = 0;
                        set = ne->set;
                }
+               newAVA->la_private = NULL;
+               newAVA->la_flags = LDAP_AVA_STRING;
 
                if ( !func ) {
                        int n = OBJ_obj2nid( obj );