From: Howard Chu Date: Wed, 9 Jul 2014 20:07:53 +0000 (-0700) Subject: ITS#7893 (#6508) fix a_numvals X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1f168a0b8f6206857c04d22a6193a93b58cabdb9;p=openldap ITS#7893 (#6508) fix a_numvals --- diff --git a/servers/slapd/overlays/memberof.c b/servers/slapd/overlays/memberof.c index 3f07ffb521..187e410417 100644 --- a/servers/slapd/overlays/memberof.c +++ b/servers/slapd/overlays/memberof.c @@ -600,6 +600,7 @@ memberof_op_add( Operation *op, SlapReply *rs ) ber_memfree( a->a_nvals[ i ].bv_val ); BER_BVZERO( &a->a_nvals[ i ] ); } + a->a_numvals--; if ( j - i == 1 ) { break; } @@ -611,7 +612,6 @@ memberof_op_add( Operation *op, SlapReply *rs ) sizeof( struct berval ) * ( j - i ) ); } i--; - a->a_numvals--; } }