Fix prev commit

This commit is contained in:
Howard Chu 2008-06-30 23:16:02 +00:00
parent 790c4d8399
commit 4e21f65ec0

View 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 */