mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-16 02:26:54 +00:00
BUG/MEDIUM: mailers: Set the object type for check attached to an email alert
The health-check attached to an email alert has no type. It is unexpected, and since the 2.6, it is important because we rely on it to know the application type in front of a connection at the stream-connector level. Because the object type is not set, the SE descriptor is not properly initialized, leading to a segfault when a connection to the SMTP server is established. This patch must be backported to 2.6 and may be backported as far as 2.0. However, it is only an issue for the 2.6 and upper.
This commit is contained in:
parent
4f1825c5db
commit
58e3501910
@ -120,6 +120,7 @@ int init_email_alert(struct mailers *mls, struct proxy *p, char **err)
|
||||
|
||||
LIST_INIT(&q->email_alerts);
|
||||
HA_SPIN_INIT(&q->lock);
|
||||
check->obj_type = OBJ_TYPE_CHECK;
|
||||
check->inter = mls->timeout.mail;
|
||||
check->rise = DEF_AGENT_RISETIME;
|
||||
check->proxy = p;
|
||||
|
Loading…
Reference in New Issue
Block a user