]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9428 fix cancel exop
authorHoward Chu <hyc@openldap.org>
Sun, 20 Dec 2020 21:31:15 +0000 (21:31 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 20 Dec 2020 21:31:15 +0000 (21:31 +0000)
servers/slapd/cancel.c

index 0d48b74b365cdb5db2bab75171251209eeab0c03..3b350964cf750a4e8da945cc4142ab186ca7acf1 100644 (file)
@@ -65,6 +65,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 ) {