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.

(cherry picked from commit 58e35019108a69d5ac9d68d07732a92499783376)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 6d8889efbd0ef6f197d5b877016a614ab74f4bf8)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit b3181c93d337abffc03517710448583d59f559dd)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed