diff options
Diffstat (limited to 'src/mod_vhostdb_dbi.c')
-rw-r--r-- | src/mod_vhostdb_dbi.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mod_vhostdb_dbi.c b/src/mod_vhostdb_dbi.c index d7f04a18..327bbc3e 100644 --- a/src/mod_vhostdb_dbi.c +++ b/src/mod_vhostdb_dbi.c @@ -298,12 +298,11 @@ static void mod_vhostdb_patch_connection (server *srv, connection *con, plugin_d /* skip the first, the global context */ for (size_t i = 1; i < srv->config_context->used; ++i) { + if (!config_check_cond(con, i)) continue; /* condition not matched */ + data_config *dc = (data_config *)srv->config_context->data[i]; s = p->config_storage[i]; - /* condition didn't match */ - if (!config_check_cond(srv, con, dc)) continue; - /* merge config */ for (size_t j = 0; j < dc->value->used; ++j) { data_unset *du = dc->value->data[j]; |