]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10497 Correct meaning of ctrlflag check to match intention
authorOndřej Kuzník <ondra@mistotebe.net>
Mon, 27 Apr 2026 10:44:06 +0000 (11:44 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 29 Apr 2026 00:09:35 +0000 (00:09 +0000)
servers/slapd/overlays/ppolicy.c
servers/slapd/overlays/syncprov.c
servers/slapd/result.c

index 2adf462a1cccaa8652888ca04e00ec0a63eafb38..9a3144517f9464afd38e14a28093d275cecf568f 100644 (file)
@@ -2082,7 +2082,7 @@ ppolicy_operational( Operation *op, SlapReply *rs )
         * the DB (and syncrepl clients not to commit our generated copy), callers
         * need to make sure they don't copy the control from their op if they need
         * it resolved anyway */
-       if ( op->o_managedsait != SLAP_CONTROL_NONE )
+       if ( wants_manageDSAit( op ) )
                return SLAP_CB_CONTINUE;
 
        /* No entry or attribute already set? Nothing to do */
index 80b64d0972a867d1b123431c0eb4a846ddd4486c..461cba7adda9b69a089dabe57d9ebc868c48f516 100644 (file)
@@ -3606,7 +3606,7 @@ syncprov_operational(
        /* This prevents generating unnecessarily; frontend will strip
         * any statically stored copy.
         */
-       if ( op->o_sync != SLAP_CONTROL_NONE )
+       if ( wants_sync( op ) )
                return SLAP_CB_CONTINUE;
 
        if ( rs->sr_entry &&
index a2bd712610725597bd3ffa5c8795d0864ba029cf..32599e236dbbffffe302f7d0adb692fb6ab735cb 100644 (file)
@@ -1212,7 +1212,7 @@ slap_send_search_entry( Operation *op, SlapReply *rs )
                                        if ( !SLAP_OPATTRS( rs->sr_attr_flags ))
                                                continue;
                                        /* if DSA-specific and replicating, skip */
-                                       if ( op->o_sync != SLAP_CONTROL_NONE &&
+                                       if ( wants_sync( op ) &&
                                                desc->ad_type->sat_usage == LDAP_SCHEMA_DSA_OPERATION )
                                                continue;
                                }
@@ -1378,7 +1378,7 @@ slap_send_search_entry( Operation *op, SlapReply *rs )
                                        continue;
                                }
                                /* if DSA-specific and replicating, skip */
-                               if ( op->o_sync != SLAP_CONTROL_NONE &&
+                               if ( wants_sync( op ) &&
                                        desc->ad_type->sat_usage == LDAP_SCHEMA_DSA_OPERATION )
                                        continue;
                        } else {