mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Silently restrict index_intlen to 4-255.
This commit is contained in:
parent
49057266a6
commit
aa2cc83d27
@ -1515,6 +1515,8 @@ config_generic(ConfigArgs *c) {
|
|||||||
} else {
|
} else {
|
||||||
if ( c->value_int < 4 )
|
if ( c->value_int < 4 )
|
||||||
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;
|
slap_schema.si_mr_integerMatch->smr_usage |= SLAP_MR_ORDERED_INDEX;
|
||||||
}
|
}
|
||||||
index_intlen = c->value_int;
|
index_intlen = c->value_int;
|
||||||
|
Loading…
Reference in New Issue
Block a user