]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 21 Nov 2019 20:22:04 +0000 (20:22 +0000)
servers/slapd/schema_init.c

index 79371c43f83d80b5859230eecd3df300eb611667..f9bf5911bc680e7cdc57031dec43031d9296013c 100644 (file)
@@ -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;