]> git.sur5r.net Git - openldap/commitdiff
ITS#7143 don't leave empty slots in normalized attr values
authorHoward Chu <hyc@openldap.org>
Fri, 3 Feb 2012 19:43:40 +0000 (11:43 -0800)
committerHoward Chu <hyc@openldap.org>
Fri, 3 Feb 2012 19:43:40 +0000 (11:43 -0800)
servers/slapd/overlays/rwm.c

index 05cf98aee61b891b820978d803cda91d2ee3a391..37e52cb71da9caa49c777d400c5fa5e2510f7cb0 100644 (file)
@@ -1277,7 +1277,7 @@ rwm_attrs( Operation *op, SlapReply *rs, Attribute** a_first, int stripEntryDN )
                                                                NULL );
 
                                                        if ( rc != LDAP_SUCCESS ) {
-                                                               BER_BVZERO( &(*ap)->a_nvals[i] );
+                                                               ber_dupbv( &(*ap)->a_nvals[i], &(*ap)->a_vals[i] );
                                                        }
                                                }
                                                BER_BVZERO( &(*ap)->a_nvals[i] );