]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: fix return value for error in start
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 13 Apr 2022 15:40:26 +0000 (17:40 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 14 Apr 2022 13:08:16 +0000 (15:08 +0200)
commit05d4ae64365cd0c49de165d8fca78178a74e21c2
tree0c0dbeaf9e76ca92d21404c01c7fefd7abf6ba6c
parent622ec4166b8d755a9dde9cd3024a2046dd555a48
BUG/MINOR: quic: fix return value for error in start

Fix the return value used in quic-conn start callback for error. The
caller expects a negative value in this case.

Without this patch, the quic-conn and the connection stack are not
closed despite an initialization failure error, which is an undefined
behavior and may cause a crash in the end.
src/xprt_quic.c