mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-13 14:27:59 +08:00
ITS#7893 (#6508) fix a_numvals
This commit is contained in:
parent
b9abbdf623
commit
1f168a0b8f
@ -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--;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user