]> git.sur5r.net Git - openldap/commitdiff
empty OID values are invalid
authorKurt Zeilenga <kurt@openldap.org>
Fri, 10 Nov 2000 23:07:20 +0000 (23:07 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 10 Nov 2000 23:07:20 +0000 (23:07 +0000)
servers/slapd/schema_init.c

index 55bd7982dd6fb185001aad385304735ab31d9bcd..04084b0672b49c51c5c9fb4fe27727ce774f3687 100644 (file)
@@ -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;