]> git.sur5r.net Git - openldap/commitdiff
Tweak ordered index check in check_vals
authorHoward Chu <hyc@openldap.org>
Thu, 14 Sep 2006 00:31:18 +0000 (00:31 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 14 Sep 2006 00:31:18 +0000 (00:31 +0000)
servers/slapd/bconfig.c

index 3b2c0cedda9195093db727a3fca321b6b3c0f639..d0d3edd1318a99415e20972d2cb925ab50b2f544 100644 (file)
@@ -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;
                }