]> git.sur5r.net Git - openldap/commitdiff
fix attribute mapping bug
authorPierangelo Masarati <ando@openldap.org>
Fri, 4 Jan 2002 18:03:43 +0000 (18:03 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 4 Jan 2002 18:03:43 +0000 (18:03 +0000)
servers/slapd/back-ldap/map.c

index de07038577f0d27050cb5eb6643d288f799a2a70..888b61df4a5310b6a99611d92727e257175dc34f 100644 (file)
@@ -229,7 +229,7 @@ ldap_back_map_attrs(
        if (na == NULL)
                return(NULL);
 
-       for (i = 0; an[i].an_name.bv_val; i++) {
+       for (i = 0; an[i].an_name.bv_val; ) {
                ldap_back_map(at_map, &an[i].an_name, &mapped, remap);
                if (mapped.bv_val != NULL) {
                        na[i] = mapped.bv_val;