fix oidValidate() when a OID contains a single '0' (ITS#3211)

This commit is contained in:
Pierangelo Masarati 2004-06-28 22:00:28 +00:00
parent c34a30a149
commit c84b7502c5

View file

@ -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;
}