]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: proto_ux: report correct error when bind_listener fails
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 6 Feb 2023 17:50:51 +0000 (18:50 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Feb 2023 14:05:05 +0000 (15:05 +0100)
commitd861dc9b48789f9c6c7f092d1a3114695cfbbe0d
tree9d99605142052da85599c39bcf27917e6c5735c2
parent2bf99123ef88c0a7af5ddd1cdc581f5d80b75b0b
BUG/MINOR: proto_ux: report correct error when bind_listener fails

In uxst_bind_listener() and uxdg_bind_listener(), when the function
fails because the listener is not bound, both function are setting
the error message but don't set the err status before returning.

Because of this, such error is not properly handled by the upper functions.

Making sure this error is properly catched by returning a composition of
ERR_FATAL and ERR_ALERT.

This could be backported up to 2.4.
src/proto_uxdg.c
src/proto_uxst.c