mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 11:39:34 -05:00
empty OID values are invalid
This commit is contained in:
parent
13370e2958
commit
fcd432ffbd
1 changed files with 4 additions and 1 deletions
|
|
@ -2216,7 +2216,10 @@ oidValidate(
|
|||
{
|
||||
ber_len_t i;
|
||||
|
||||
if( val->bv_len == 0 ) return 0;
|
||||
if( val->bv_len == 0 ) {
|
||||
/* disallow empty strings */
|
||||
return LDAP_INVALID_SYNTAX;
|
||||
}
|
||||
|
||||
if( OID_LEADCHAR(val->bv_val[0]) ) {
|
||||
int dot = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue