From b40cc4c3353e7d04449e0a2b463778f8dc696b2f Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Thu, 30 Nov 2017 20:52:11 +0200 Subject: [PATCH] login-common: Enable config filtering by local name Prevents servername misuse. --- src/login-common/login-settings.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/login-common/login-settings.c b/src/login-common/login-settings.c index 313d61f5ce..6f826ff4b7 100644 --- a/src/login-common/login-settings.c +++ b/src/login-common/login-settings.c @@ -179,6 +179,14 @@ login_settings_read(pool_t pool, set_cache = master_service_settings_cache_init(master_service, input.module, input.service); + /* lookup filters + + this is only enabled if service_count > 1 because otherwise + login process will process only one request and this is only + useful when more than one request is processed. + */ + if (master_service_get_service_count(master_service) > 1) + master_service_settings_cache_init_filter(set_cache); } if (master_service_settings_cache_read(set_cache, &input, NULL, -- 2.47.3