From: Howard Chu Date: Fri, 3 Feb 2012 19:43:40 +0000 (-0800) Subject: ITS#7143 don't leave empty slots in normalized attr values X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ef2f5263de8802794e528cc2648ecfca369302ae;p=openldap ITS#7143 don't leave empty slots in normalized attr values --- diff --git a/servers/slapd/overlays/rwm.c b/servers/slapd/overlays/rwm.c index 05cf98aee6..37e52cb71d 100644 --- a/servers/slapd/overlays/rwm.c +++ b/servers/slapd/overlays/rwm.c @@ -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] );