]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/schema_init.c
re-fix previus commit the other way 'round (rids are < 1000)
[openldap] / servers / slapd / schema_init.c
index 8eec00300e9d7171a8ffa9cf93ce8c4b28f0f83e..616d9703842915b381cccaf56eea1facf464339e 100644 (file)
@@ -2107,7 +2107,7 @@ IA5StringNormalize(
         * position.  One is enough because the above loop collapsed
         * all whitespace to a single space.
         */
-       if ( ASCII_SPACE( q[-1] ) ) --q;
+       if ( q > normalized->bv_val && ASCII_SPACE( q[-1] ) ) --q;
 
        /* null terminate */
        *q = '\0';