From: Howard Chu Date: Wed, 21 Nov 2007 03:24:49 +0000 (+0000) Subject: Silently restrict index_intlen to 4-255. X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~408 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aa2cc83d27b0d7398b380a409640f716a47b8373;p=openldap Silently restrict index_intlen to 4-255. --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 3e49276572..4338eeaf96 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -1515,6 +1515,8 @@ config_generic(ConfigArgs *c) { } else { if ( c->value_int < 4 ) c->value_int = 4; + else if ( c->value_int > 255 ) + c->value_int = 255; slap_schema.si_mr_integerMatch->smr_usage |= SLAP_MR_ORDERED_INDEX; } index_intlen = c->value_int;