mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-01 14:15:49 +08:00
fix uninitialized counter in matched values
This commit is contained in:
parent
a352bcaa16
commit
9d39e1e672
@ -731,7 +731,7 @@ send_search_entry(
|
||||
* to particular value of attribute an equals 1 if value matches
|
||||
* to ValuesReturnFilter or 0 if not
|
||||
*/
|
||||
for ( a = e->e_attrs; a != NULL; a = a->a_next ) i++;
|
||||
for ( a = e->e_attrs, i=0; a != NULL; a = a->a_next ) i++;
|
||||
e_flags = ch_malloc ( i * sizeof(a_flags) );
|
||||
|
||||
for ( a = e->e_attrs, i=0; a != NULL; a = a->a_next, i++ ) {
|
||||
|
Loading…
Reference in New Issue
Block a user