diff options
Diffstat (limited to 'src/mod_authn_mysql.c')
-rw-r--r-- | src/mod_authn_mysql.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mod_authn_mysql.c b/src/mod_authn_mysql.c index 11339160..6e41c5fb 100644 --- a/src/mod_authn_mysql.c +++ b/src/mod_authn_mysql.c @@ -294,12 +294,11 @@ static int mod_authn_mysql_patch_connection(server *srv, connection *con, plugin /* 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]; |