[PATCH] ITS#9428 fix cancel exop
authorHoward Chu <hyc@openldap.org>
Sun, 20 Dec 2020 21:31:15 +0000 (21:31 +0000)
committerRyan Tandy <ryan@nardis.ca>
Sat, 14 May 2022 18:35:44 +0000 (19:35 +0100)
Gbp-Pq: Name ITS-9428-fix-cancel-exop.patch

servers/slapd/cancel.c

index a7bbb535075cb12c00f061c2f6578dbe2d8c86b1..822c009655d7bdc1d7b7f2be3c682f965d3984d3 100644 (file)
@@ -64,6 +64,11 @@ int cancel_extop( Operation *op, SlapReply *rs )
                return LDAP_PROTOCOL_ERROR;
        }
 
+       if ( opid == op->o_msgid ) {
+               op->o_cancel = SLAP_CANCEL_DONE;
+               return LDAP_SUCCESS;
+       }
+
        ldap_pvt_thread_mutex_lock( &op->o_conn->c_mutex );
 
        if ( op->o_abandon ) {