Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
SUSE:SLE-12-SP1:GA
dovecot22.16060
0005-login-common-Enable-config-filtering-by-lo...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0005-login-common-Enable-config-filtering-by-local-name.patch of Package dovecot22.16060
From bc27538d084e01a7a1aca3330e27aebfc0e311eb Mon Sep 17 00:00:00 2001 From: Aki Tuomi <aki.tuomi@dovecot.fi> Date: Thu, 30 Nov 2017 20:52:11 +0200 Subject: [PATCH 5/6] 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 aaa9d0b..2fc3613 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, -- 2.1.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor