# HG changeset patch # User Aki Tuomi # Date 1512067931 -7200 # Node ID 685a613c315f14eb9f07d4e2dcc7da6c22899d78 # Parent 6b75bab3ec79f8c073fa7b785ecc2333885a64c3 login-common: Enable config filtering by local name Prevents servername misuse. diff -r 6b75bab3ec79 -r 685a613c315f src/login-common/login-settings.c --- a/src/login-common/login-settings.c Thu Nov 30 15:47:25 2017 +0200 +++ b/src/login-common/login-settings.c Thu Nov 30 20:52:11 2017 +0200 @@ -185,6 +185,14 @@ 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,