]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9067 fix syntax evaluation of preferredDeliveryMethod
authorJulia Bremer <bremer@univention.de>
Tue, 30 Jul 2019 11:51:02 +0000 (13:51 +0200)
committerHoward Chu <hyc@openldap.org>
Mon, 26 Aug 2019 16:14:25 +0000 (17:14 +0100)
servers/slapd/schema_init.c

index 6832705f5910c6f9b4e33e37e7060a3562f13c56..86550d01d57ee1e58df6e88a90af665a2a7bb30c 100644 (file)
@@ -6029,18 +6029,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;