From: Kurt Zeilenga Date: Fri, 10 Nov 2000 23:07:20 +0000 (+0000) Subject: empty OID values are invalid X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1649 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fcd432ffbda205c2d347181a61d040651d55fa83;p=openldap empty OID values are invalid --- diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 55bd7982dd..04084b0672 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -2216,7 +2216,10 @@ oidValidate( { ber_len_t i; - if( val->bv_len == 0 ) return 0; + if( val->bv_len == 0 ) { + /* disallow empty strings */ + return LDAP_INVALID_SYNTAX; + } if( OID_LEADCHAR(val->bv_val[0]) ) { int dot = 0;