/* Create event for matching config filters */
struct event *event = event_create(NULL);
event_add_str(event, "protocol", input->service);
- event_add_str(event, "user", input->username);
- event_add_str(event, "local_name", input->local_name);
- event_add_ip(event, "local_ip", &input->local_ip);
- event_add_ip(event, "remote_ip", &input->remote_ip);
/* config_mmap is NULL only if MASTER_SERVICE_FLAG_NO_CONFIG_SETTINGS
is used */
bool disable_check_settings;
const char *service;
- const char *username;
- struct ip_addr local_ip, remote_ip;
- const char *local_name;
};
struct master_service_settings_output {
set_input.use_sysexits =
(flags & MAIL_STORAGE_SERVICE_FLAG_USE_SYSEXITS) != 0;
- if (input != NULL) {
+ if (input != NULL)
set_input.service = input->service;
- set_input.username = input->username;
- set_input.local_ip = input->local_ip;
- set_input.remote_ip = input->remote_ip;
- }
if (ctx->settings_looked_up) {
/* already looked up settings at least once.
we really shouldn't be execing anymore. */