Commit c84b7502 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

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

parent c34a30a1
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment