From: Howard Chu Date: Thu, 14 Sep 2006 00:31:18 +0000 (+0000) Subject: Tweak ordered index check in check_vals X-Git-Tag: OPENLDAP_REL_ENG_2_3_MP~152 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8e9651a598677a4843b35f9f6197a6727af9732b;p=openldap Tweak ordered index check in check_vals --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 3b2c0cedda..d0d3edd131 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -3558,7 +3558,8 @@ check_vals( ConfigTable *ct, ConfigArgs *ca, void *ptr, int isAttr ) } for ( i=0; vals[i].bv_val; i++ ) { ca->line = vals[i].bv_val; - if ( ad->ad_type->sat_flags & SLAP_AT_ORDERED_VAL ) { + if (( ad->ad_type->sat_flags & SLAP_AT_ORDERED_VAL ) && + ca->line[0] == '{' ) { char *idx = strchr( ca->line, '}' ); if ( idx ) ca->line = idx+1; }