From ef2f5263de8802794e528cc2648ecfca369302ae Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 3 Feb 2012 11:43:40 -0800 Subject: [PATCH] ITS#7143 don't leave empty slots in normalized attr values --- servers/slapd/overlays/rwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] ); -- 2.39.5