From: Luke Howard Date: Sun, 19 Jan 2003 15:20:09 +0000 (+0000) Subject: Use strtol() not strtoul() in integerBit{And,Or}Match matching rules X-Git-Tag: NO_SLAP_OP_BLOCKS~600 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d54548b9a00955d57f6f45ca107f6d38043d3a5b;p=openldap Use strtol() not strtoul() in integerBit{And,Or}Match matching rules --- diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 2455a2a1f3..12d0d5d324 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -3506,7 +3506,7 @@ integerBitAndMatch( long lValue, lAssertedValue; /* safe to assume integers are NUL terminated? */ - lValue = strtoul(value->bv_val, NULL, 10); + lValue = strtol(value->bv_val, NULL, 10); if(( lValue == LONG_MIN || lValue == LONG_MAX) && errno == ERANGE ) { return LDAP_CONSTRAINT_VIOLATION; } @@ -3534,7 +3534,7 @@ integerBitOrMatch( long lValue, lAssertedValue; /* safe to assume integers are NUL terminated? */ - lValue = strtoul(value->bv_val, NULL, 10); + lValue = strtol(value->bv_val, NULL, 10); if(( lValue == LONG_MIN || lValue == LONG_MAX) && errno == ERANGE ) { return LDAP_CONSTRAINT_VIOLATION; }