ITS#10160 Make the == precedence explicit, helps with readability too

This commit is contained in:
Ondřej Kuzník 2025-12-17 11:49:44 +00:00
parent d6b8a98776
commit 0c75e51b58

View 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;
}