ITS#7893 (#6508) fix a_numvals

This commit is contained in:
Howard Chu 2014-07-09 13:07:53 -07:00
parent b9abbdf623
commit 1f168a0b8f

View File

@ -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--;
}
}