ITS#9067 fix syntax evaluation of preferredDeliveryMethod

This commit is contained in:
Julia Bremer 2019-07-30 13:51:02 +02:00 committed by Howard Chu
parent efbfc1fe95
commit 8514f2a771

View 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;