]> git.sur5r.net Git - openldap/commitdiff
Fix invalid attributes in translucent_modify
authorHoward Chu <hyc@openldap.org>
Thu, 14 Sep 2006 21:11:26 +0000 (21:11 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 14 Sep 2006 21:11:26 +0000 (21:11 +0000)
servers/slapd/overlays/translucent.c

index 12a2db2211db5de86ee1596ad5e61f98a736ebcb..a6ffc7d28ac58bcccf3c97d5f8cca517c0f8972a 100644 (file)
@@ -424,7 +424,7 @@ release:
                }
                a = attr_alloc( m->sml_desc );
                a->a_vals  = m->sml_values;
-               a->a_nvals = m->sml_nvalues;
+               a->a_nvals = m->sml_nvalues ? m->sml_nvalues : a->a_vals;
                a->a_next  = ax;
                ax = a;
        }