From c84b7502c547c7cd59dc4b97f460f88a04cd741a Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 28 Jun 2004 22:00:28 +0000 Subject: [PATCH] fix oidValidate() when a OID contains a single '0' (ITS#3211) --- servers/slapd/schema_prep.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.39.5