Import ITS#3160 fix from HEAD

This commit is contained in:
Howard Chu 2004-06-06 06:35:59 +00:00
parent e7d6343532
commit 8e426aa957
2 changed files with 2 additions and 0 deletions

View file

@ -100,6 +100,7 @@ do_abandon(
LDAP_STAILQ_FOREACH( o, &conn->c_pending_ops, o_next ) {
if ( o->o_msgid == id ) {
LDAP_STAILQ_REMOVE( &conn->c_pending_ops, o, slap_op, o_next );
conn->c_n_ops_pending--;
slap_op_free( o );
goto done;
}

View file

@ -69,6 +69,7 @@ int cancel_extop(
LDAP_STAILQ_FOREACH( op, &conn->c_pending_ops, o_next ) {
if ( op->o_msgid == opid ) {
LDAP_STAILQ_REMOVE( &conn->c_pending_ops, op, slap_op, o_next );
conn->c_n_ops_pending--;
slap_op_free( op );
found = 1;
break;