]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Revert "ITS#9828 Fix ldap_count_values_len pointer confusion"
authorHoward Chu <hyc@openldap.org>
Mon, 25 Apr 2022 16:26:37 +0000 (17:26 +0100)
committerHoward Chu <hyc@openldap.org>
Mon, 25 Apr 2022 16:26:37 +0000 (17:26 +0100)
This reverts commit 7e7fad5e03141b627e2d400ee4999cf629d34eb0.

libraries/libldap/getvalues.c

index 4e3d6c28270a3041831991c5f527194b6ee68071..b3ac1907f83649de5895ed00638742194924d503 100644 (file)
@@ -159,15 +159,7 @@ ldap_count_values( char **vals )
 int
 ldap_count_values_len( struct berval **vals )
 {
-       int i;
-
-       if ( vals == NULL )
-               return 0;
-
-       for ( i = 0; !BER_BVISNULL( vals[i] ); i++ )
-               ; /* NULL */
-
-       return i;
+       return( ldap_count_values( (char **) vals ) );
 }
 
 void