]> git.sur5r.net Git - openldap/commitdiff
fix typo
authorPierangelo Masarati <ando@openldap.org>
Mon, 14 Jan 2002 19:42:59 +0000 (19:42 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 14 Jan 2002 19:42:59 +0000 (19:42 +0000)
libraries/libldap/dntest.c

index b6538d06ece5f2f0276388c890e1491a7d4ee48d..913cb55f50f2ff0737cb02715216685a0d56614e 100644 (file)
@@ -120,8 +120,8 @@ main( int argc, char *argv[] )
 
        if ( rc == LDAP_SUCCESS ) {
                int i;
-               if( dn ) {
-                       for ( i = 0; dn[i]; i++ ) {
+               if ( dn ) {
+                       for ( i = 0; dn[ 0 ][ i ]; i++ ) {
                                LDAPRDN         *rdn = dn[ 0 ][ i ];
                                char            *rstr = NULL;