From: Julia Bremer Date: Tue, 30 Jul 2019 11:51:02 +0000 (+0200) Subject: ITS#9067 fix syntax evaluation of preferredDeliveryMethod X-Git-Tag: OPENLDAP_REL_ENG_2_4_49~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84097fecd8ba803d84b4eeab72fc22237e9279de;p=thirdparty%2Fopenldap.git ITS#9067 fix syntax evaluation of preferredDeliveryMethod --- 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;