From: Howard Chu Date: Fri, 27 Feb 2009 01:58:09 +0000 (+0000) Subject: ITS#5977 fix typo X-Git-Tag: ACLCHECK_0~776 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e6eff03373d3913eb58b83fab04a8923090e4c44;p=openldap ITS#5977 fix typo --- diff --git a/servers/slapd/back-ldap/search.c b/servers/slapd/back-ldap/search.c index 1bb236db2b..eb2fee1f58 100644 --- a/servers/slapd/back-ldap/search.c +++ b/servers/slapd/back-ldap/search.c @@ -837,7 +837,7 @@ ldap_build_entry( } BER_BVZERO(&attr->a_vals[attr->a_numvals]); if ( attr->a_nvals != attr->a_vals ) - BER_BVZERO(&attr->a_vals[attr->a_numvals]); + BER_BVZERO(&attr->a_nvals[attr->a_numvals]); } attr->a_flags |= SLAP_ATTR_SORTED_VALS; } diff --git a/servers/slapd/back-meta/search.c b/servers/slapd/back-meta/search.c index b0de33851d..171221421d 100644 --- a/servers/slapd/back-meta/search.c +++ b/servers/slapd/back-meta/search.c @@ -2183,7 +2183,7 @@ next_attr:; } BER_BVZERO(&attr->a_vals[attr->a_numvals]); if ( attr->a_nvals != attr->a_vals ) - BER_BVZERO(&attr->a_vals[attr->a_numvals]); + BER_BVZERO(&attr->a_nvals[attr->a_numvals]); } attr->a_flags |= SLAP_ATTR_SORTED_VALS; }