]> git.sur5r.net Git - openldap/commitdiff
SLAP_NVALUES fix
authorHoward Chu <hyc@openldap.org>
Mon, 24 Mar 2003 17:28:26 +0000 (17:28 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 24 Mar 2003 17:28:26 +0000 (17:28 +0000)
servers/slapd/back-bdb/id2entry.c

index abc7342811bf39b5baf8fdc674ebc2e22ccdfcd3..6065491faa7d15934d296d7315a76f2661bb90f3 100644 (file)
@@ -210,7 +210,7 @@ int bdb_entry_return(
                /* nvals are not contiguous with the rest. oh well. */
                Attribute *a;
                for (a = e->e_attrs; a; a=a->a_next) {
-                       if (a->a_nvals) {
+                       if (a->a_nvals != a->a_vals) {
                                ber_bvarray_free( a->a_nvals );
                                a->a_nvals = NULL;
                        }