From 84097fecd8ba803d84b4eeab72fc22237e9279de Mon Sep 17 00:00:00 2001 From: Julia Bremer Date: Tue, 30 Jul 2019 13:51:02 +0200 Subject: [PATCH] ITS#9067 fix syntax evaluation of preferredDeliveryMethod --- servers/slapd/schema_init.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 79371c43f8..f9bf5911bc 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -5954,18 +5954,18 @@ again: if( BER_BVISEMPTY( &tmp ) ) return LDAP_SUCCESS; while( !BER_BVISEMPTY( &tmp ) && ( tmp.bv_val[0] == ' ' ) ) { - tmp.bv_len++; - tmp.bv_val--; + tmp.bv_len--; + tmp.bv_val++; } if( !BER_BVISEMPTY( &tmp ) && ( tmp.bv_val[0] == '$' ) ) { - tmp.bv_len++; - tmp.bv_val--; + tmp.bv_len--; + tmp.bv_val++; } else { return LDAP_INVALID_SYNTAX; } while( !BER_BVISEMPTY( &tmp ) && ( tmp.bv_val[0] == ' ' ) ) { - tmp.bv_len++; - tmp.bv_val--; + tmp.bv_len--; + tmp.bv_val++; } goto again; -- 2.47.2