]> git.sur5r.net Git - openldap/commitdiff
More for ITS#5571
authorQuanah Gibson-Mount <quanah@openldap.org>
Thu, 10 Jul 2008 01:52:27 +0000 (01:52 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 10 Jul 2008 01:52:27 +0000 (01:52 +0000)
servers/slapd/bconfig.c

index b7334eb16c86692cc57b57709f95f871c6f9dae1..a27299e4e82a92a5335cf515693b0084f7bf50ae 100644 (file)
@@ -3994,7 +3994,7 @@ cfAddDatabase( CfEntryInfo *p, Entry *e, struct config_args_s *ca )
        }
        /* config must be {0}, nothing else allowed */
        if ( !strncmp( e->e_nname.bv_val, "olcDatabase={0}", STRLENOF("olcDatabase={0}")) &&
-               strcmp( e->e_nname.bv_val + STRLENOF("olcDatabase={0}"), "config" )) {
+               strncmp( e->e_nname.bv_val + STRLENOF("olcDatabase={0}"), "config,", STRLENOF("config,") )) {
                return LDAP_CONSTRAINT_VIOLATION;
        }
        ca->be = frontendDB;    /* just to get past check_vals */