]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h1: Avoid useless call to h1_send() if no error is sent
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 23 Nov 2022 16:13:12 +0000 (17:13 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 23 Nov 2022 16:13:13 +0000 (17:13 +0100)
commitd1b573059ac201b7fef4cf468c454c15eadc11c2
treec27bcf97974817f2fae682112ad9172a9e81e90b
parenta1a76ce709b453f6bf58dc720648ad258eef2811
MINOR: mux-h1: Avoid useless call to h1_send() if no error is sent

If we choose to not send an error to the client, there is no reason to call
h1_send() for nothing. This happens because functions handling errors return
1 instead of 0 when nothing is performed.
src/mux_h1.c