Commit 7e7fad5e authored by Ondřej Kuzník's avatar Ondřej Kuzník
Browse files

ITS#9828 Fix ldap_count_values_len pointer confusion

parent 059c7dbc
Pipeline #4249 passed with stage
in 45 minutes and 16 seconds
...@@ -159,7 +159,15 @@ ldap_count_values( char **vals ) ...@@ -159,7 +159,15 @@ ldap_count_values( char **vals )
int int
ldap_count_values_len( struct berval **vals ) ldap_count_values_len( struct berval **vals )
{ {
return( ldap_count_values( (char **) vals ) ); int i;
if ( vals == NULL )
return 0;
for ( i = 0; !BER_BVISNULL( vals[i] ); i++ )
; /* NULL */
return i;
} }
void void
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment