Skip to content

Commit

Permalink
login-common: Enable config filtering by local name
Browse files Browse the repository at this point in the history
Prevents servername misuse.
  • Loading branch information
cmouse authored and villesavolainen committed Feb 21, 2018
1 parent 3be6c1a commit 8960d1c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/login-common/login-settings.c
Expand Up @@ -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,
Expand Down

0 comments on commit 8960d1c

Please sign in to comment.