mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
cleanup
This commit is contained in:
parent
f199cff008
commit
25166f8166
1 changed files with 5 additions and 2 deletions
|
|
@ -1984,11 +1984,14 @@ integerBitOrMatch(
|
|||
|
||||
/* safe to assume integers are NUL terminated? */
|
||||
lValue = SLAP_STRTOL(value->bv_val, NULL, 10);
|
||||
if(( lValue == SLAP_LONG_MIN || lValue == SLAP_LONG_MAX ) && errno == ERANGE ) {
|
||||
if(( lValue == SLAP_LONG_MIN || lValue == SLAP_LONG_MAX ) &&
|
||||
errno == ERANGE )
|
||||
{
|
||||
return LDAP_CONSTRAINT_VIOLATION;
|
||||
}
|
||||
|
||||
lAssertedValue = SLAP_STRTOL(((struct berval *)assertedValue)->bv_val, NULL, 10);
|
||||
lAssertedValue = SLAP_STRTOL( ((struct berval *)assertedValue)->bv_val,
|
||||
NULL, 10);
|
||||
if(( lAssertedValue == SLAP_LONG_MIN || lAssertedValue == SLAP_LONG_MAX )
|
||||
&& errno == ERANGE )
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue