]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10160 Make the == precedence explicit, helps with readability too
authorOndřej Kuzník <ondra@mistotebe.net>
Wed, 17 Dec 2025 11:49:44 +0000 (11:49 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 10 Feb 2026 00:04:08 +0000 (00:04 +0000)
servers/slapd/overlays/constraint.c

index 13af13a2f323540201f12854820a051bfb1a546d..7ab70f04b520169c6e00778b18fc988eecc99b7f 100644 (file)
@@ -752,7 +752,7 @@ constraint_violation( constraint *c, struct berval *bv, Operation *op )
                                return rc; /* unexpected error */
                        }
 
-                       if (found ^ c->type == CONSTRAINT_URI)
+                       if (found ^ (c->type == CONSTRAINT_URI) )
                                return LDAP_CONSTRAINT_VIOLATION; /* constraint violation */
                        break;
                }