mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#9067 fix syntax evaluation of preferredDeliveryMethod
This commit is contained in:
parent
efbfc1fe95
commit
8514f2a771
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user