]> git.sur5r.net Git - openldap/commitdiff
ITS#5977 fix typo
authorHoward Chu <hyc@openldap.org>
Fri, 27 Feb 2009 01:58:09 +0000 (01:58 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 27 Feb 2009 01:58:09 +0000 (01:58 +0000)
servers/slapd/back-ldap/search.c
servers/slapd/back-meta/search.c

index 1bb236db2b26a7bbc6570a9e06662893c20dcd9e..eb2fee1f58ab7b78e58d98b60f678f633b4172f5 100644 (file)
@@ -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;
                }
index b0de33851d9d6f39143385ad75a59cc4a4a00379..171221421df2c7f5271f00914c72b2ea9e971c4c 100644 (file)
@@ -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;
                        }