]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Disallow empty OID strings
authorKurt Zeilenga <kurt@openldap.org>
Thu, 4 Jan 2001 00:13:03 +0000 (00:13 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 4 Jan 2001 00:13:03 +0000 (00:13 +0000)
servers/slapd/schema_init.c

index 0925fc599880397fd8d3a5385f6951fba8405c9e..25e89e88e5eb4c253b10d05a11ac13849e58f960 100644 (file)
@@ -1782,7 +1782,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;