From dd82c46596ad772573b496f4bd873646ade15feb Mon Sep 17 00:00:00 2001 From: Esa Korhonen Date: Tue, 14 Mar 2017 10:40:36 +0200 Subject: [PATCH] Remove two checks that always return false At the point this function is called, the servers and services are not yet created. --- server/core/config.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/core/config.c b/server/core/config.c index b739668ba..9913f2958 100644 --- a/server/core/config.c +++ b/server/core/config.c @@ -3400,16 +3400,14 @@ bool config_param_is_valid(const MXS_MODULE_PARAM *params, const char *key, break; case MXS_MODULE_PARAM_SERVICE: - if ((context && config_contains_type(context, value, "service")) || - service_find(value)) + if (context && config_contains_type(context, value, "service")) { valid = true; } break; case MXS_MODULE_PARAM_SERVER: - if ((context && config_contains_type(context, value, "server")) || - server_find_by_unique_name(value)) + if (context && config_contains_type(context, value, "server")) { valid = true; }