Fix rootDN check

This commit is contained in:
Howard Chu 2006-06-26 13:00:29 +00:00
parent c0504b05a5
commit a2dd092291

View file

@ -726,8 +726,7 @@ log_cf_gen(ConfigArgs *c)
Debug( LDAP_DEBUG_ANY, "%s: %s \"%s\"\n",
c->log, c->msg, c->value_dn.bv_val );
rc = 1;
}
if ( BER_BVISEMPTY( &li->li_db->be_rootdn )) {
} else if ( BER_BVISEMPTY( &li->li_db->be_rootdn )) {
snprintf( c->msg, sizeof( c->msg ),
"<%s> no rootDN was configured for suffix",
c->argv[0] );