mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-02 13:09:42 -05:00
fix bitwise matching (courtesy of Luke Howard)
This commit is contained in:
parent
bcf7b47079
commit
71aecea2aa
1 changed files with 2 additions and 2 deletions
|
|
@ -3545,7 +3545,7 @@ integerBitAndMatch(
|
|||
if(( lAssertedValue == LONG_MIN || lAssertedValue == LONG_MAX) && errno == ERANGE )
|
||||
return LDAP_CONSTRAINT_VIOLATION;
|
||||
|
||||
*matchp = (lValue & lAssertedValue);
|
||||
*matchp = (lValue & lAssertedValue) ? 0 : 1;
|
||||
return LDAP_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
@ -3569,7 +3569,7 @@ integerBitOrMatch(
|
|||
if(( lAssertedValue == LONG_MIN || lAssertedValue == LONG_MAX) && errno == ERANGE )
|
||||
return LDAP_CONSTRAINT_VIOLATION;
|
||||
|
||||
*matchp = (lValue | lAssertedValue);
|
||||
*matchp = (lValue | lAssertedValue) ? 0 : -1;
|
||||
return LDAP_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue