summaryrefslogtreecommitdiff
path: root/src/mod_rrdtool.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_rrdtool.c')
-rw-r--r--src/mod_rrdtool.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mod_rrdtool.c b/src/mod_rrdtool.c
index 876dafa5..794b79a6 100644
--- a/src/mod_rrdtool.c
+++ b/src/mod_rrdtool.c
@@ -255,12 +255,11 @@ static int mod_rrd_patch_connection(server *srv, connection *con, plugin_data *p
/* 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];