From 7e0847045a236e67f6a5bf83ae54971409892115 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyril=20Bont=C3=A9?= Date: Fri, 4 Dec 2015 03:07:06 +0100 Subject: [PATCH] BUG/MEDIUM: checks: email-alert not working when declared in defaults Tommy Atkinson and Sylvain Faivre reported that email alerts didn't work when they were declared in the defaults section. This is due to the use of an internal attribute which is set once an email-alert is at least partially configured. But this attribute was not propagated to the current proxy during the configuration parsing. Not that the issue doesn't occur if "email-alert myhostname" is configured in the defaults section. This fix must be backported to 1.6. --- src/cfgparse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cfgparse.c b/src/cfgparse.c index 44070a541..9ebae2cfa 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -2804,6 +2804,7 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm) if (defproxy.email_alert.myhostname) curproxy->email_alert.myhostname = strdup(defproxy.email_alert.myhostname); curproxy->email_alert.level = defproxy.email_alert.level; + curproxy->email_alert.set = defproxy.email_alert.set; goto out; }