From d54548b9a00955d57f6f45ca107f6d38043d3a5b Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Sun, 19 Jan 2003 15:20:09 +0000 Subject: [PATCH] Use strtol() not strtoul() in integerBit{And,Or}Match matching rules --- servers/slapd/schema_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5