diff -Nur openldap-2.4.45+dfsg.o/debian/patches/99_preferredDeliveryMethod_syntax.patch openldap-2.4.45+dfsg/debian/patches/99_preferredDeliveryMethod_syntax.patch --- openldap-2.4.45+dfsg.o/debian/patches/99_preferredDeliveryMethod_syntax.patch 1970-01-01 01:00:00.000000000 +0100 +++ openldap-2.4.45+dfsg/debian/patches/99_preferredDeliveryMethod_syntax.patch 2019-07-29 14:41:34.792000000 +0200 @@ -0,0 +1,27 @@ +--- openldap-2.4.45+dfsg.orig/servers/slapd/schema_init.c ++++ openldap-2.4.45+dfsg/servers/slapd/schema_init.c +@@ -5943,18 +5943,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; diff -Nur openldap-2.4.45+dfsg.o/debian/patches/series openldap-2.4.45+dfsg/debian/patches/series --- openldap-2.4.45+dfsg.o/debian/patches/series 2019-07-29 12:01:09.548000000 +0200 +++ openldap-2.4.45+dfsg/debian/patches/series 2019-07-29 14:41:49.804000000 +0200 @@ -1000,0 +1000,1 @@ +99_preferredDeliveryMethod_syntax.patch