mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Fix ITS#3160, decrement conn->c_n_ops_pending when removing an op from
the conn->c_pending_ops queue.
This commit is contained in:
parent
650ca42066
commit
2c0d735aa7
@ -103,6 +103,7 @@ do_abandon( Operation *op, SlapReply *rs )
|
||||
LDAP_STAILQ_FOREACH( o, &op->o_conn->c_pending_ops, o_next ) {
|
||||
if ( o->o_msgid == id ) {
|
||||
LDAP_STAILQ_REMOVE( &op->o_conn->c_pending_ops, o, slap_op, o_next );
|
||||
op->o_conn->c_n_ops_pending--;
|
||||
slap_op_free( o );
|
||||
goto done;
|
||||
}
|
||||
|
@ -66,6 +66,7 @@ int cancel_extop( Operation *op, SlapReply *rs )
|
||||
LDAP_STAILQ_FOREACH( o, &op->o_conn->c_pending_ops, o_next ) {
|
||||
if ( o->o_msgid == opid ) {
|
||||
LDAP_STAILQ_REMOVE( &op->o_conn->c_pending_ops, o, slap_op, o_next );
|
||||
op->o_conn->c_n_ops_pending--;
|
||||
slap_op_free( o );
|
||||
found = 1;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user