diff options
Diffstat (limited to 'src/mod_evhost.c')
-rw-r--r-- | src/mod_evhost.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mod_evhost.c b/src/mod_evhost.c index 4217ee02..e5bb985d 100644 --- a/src/mod_evhost.c +++ b/src/mod_evhost.c @@ -263,12 +263,11 @@ static int mod_evhost_patch_connection(server *srv, connection *con, plugin_data /* skip the first, the global context */ for (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 (j = 0; j < dc->value->used; j++) { data_unset *du = dc->value->data[j]; |