mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
fix oidValidate() when a OID contains a single '0' (ITS#3211)
This commit is contained in:
parent
c34a30a149
commit
c84b7502c5
1 changed files with 3 additions and 1 deletions
|
|
@ -62,7 +62,9 @@ oidValidate(
|
|||
return LDAP_SUCCESS;
|
||||
}
|
||||
|
||||
if ( val.bv_val[0] == '0' ) {
|
||||
/* FIXME: the OID of 'dc' and other attributeTypes
|
||||
* starts with '0'! */
|
||||
if ( val.bv_val[0] == '0' && !OID_SEPARATOR( val.bv_val[1] ) ) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue