File 0224-ITS-9428-fix-cancel-exop.patch of Package openldap2.24986

From 94ec55f8ad7f71d820906b9a2b18f42c06980fb3 Mon Sep 17 00:00:00 2001
From: Howard Chu <hyc@openldap.org>
Date: Sun, 20 Dec 2020 21:31:15 +0000
Subject: [PATCH 224/224] ITS#9428 fix cancel exop

---
 servers/slapd/cancel.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/servers/slapd/cancel.c b/servers/slapd/cancel.c
index a7bbb5350..822c00965 100644
--- a/servers/slapd/cancel.c
+++ b/servers/slapd/cancel.c
@@ -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 ) {
-- 
2.30.0

openSUSE Build Service is sponsored by