]> git.sur5r.net Git - openldap/commitdiff
Fix rootDN check
authorHoward Chu <hyc@openldap.org>
Mon, 26 Jun 2006 13:00:29 +0000 (13:00 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 26 Jun 2006 13:00:29 +0000 (13:00 +0000)
servers/slapd/overlays/accesslog.c

index 0a37433f163fcda19e6c9e97bbbf1ad447e332f9..15c512a0224c05734f34bb850bdef4141aae8161 100644 (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] );