From fcd432ffbda205c2d347181a61d040651d55fa83 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 10 Nov 2000 23:07:20 +0000 Subject: [PATCH] empty OID values are invalid --- servers/slapd/schema_init.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.39.5