X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fschema_init.c;h=616d9703842915b381cccaf56eea1facf464339e;hb=6a9c44849c1c20b9d961de7a0b6585dcd059154a;hp=8eec00300e9d7171a8ffa9cf93ce8c4b28f0f83e;hpb=67f16caec0b33198f9a0d725fad12d52b10da792;p=openldap diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 8eec00300e..616d970384 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -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';