From: Pierangelo Masarati Date: Mon, 28 Jun 2004 22:00:28 +0000 (+0000) Subject: fix oidValidate() when a OID contains a single '0' (ITS#3211) X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~161 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c84b7502c547c7cd59dc4b97f460f88a04cd741a;p=openldap fix oidValidate() when a OID contains a single '0' (ITS#3211) --- diff --git a/servers/slapd/schema_prep.c b/servers/slapd/schema_prep.c index fa91ccdc31..594338144c 100644 --- a/servers/slapd/schema_prep.c +++ b/servers/slapd/schema_prep.c @@ -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; }