From: Aki Tuomi Date: Thu, 30 Nov 2017 18:52:11 +0000 (+0200) Subject: login-common: Enable config filtering by local name X-Git-Tag: 2.2.35~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d856e3fa4fe0e6fc4d41aa4c41735fc540e33d99;p=thirdparty%2Fdovecot%2Fcore.git login-common: Enable config filtering by local name Prevents servername misuse. --- diff --git a/src/login-common/login-settings.c b/src/login-common/login-settings.c index aaa9d0b0f2..2fc3613ac1 100644 --- a/src/login-common/login-settings.c +++ b/src/login-common/login-settings.c @@ -185,6 +185,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,