]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http-conv: Remove unreachable goto statement in sample_conv_q_preferred
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Nov 2024 09:06:50 +0000 (10:06 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Nov 2024 09:06:52 +0000 (10:06 +0100)
commit97d3096040f5ee52d69492f675bcd06ce8aa9e3e
tree80f8a7c9560f3b1546d567f3e7e1a01d14631581
parent1cc9340afde6adfe4c7cc06f69cbdf65370c544b
MINOR: http-conv: Remove unreachable goto statement in sample_conv_q_preferred

This was reported by Coverity. In sample_conv_q_preferred() function, a goto
statement after a "while(1)" loop is unreachable. Instead of just removing
it, the same goto statement in the loop is replaced by a break. It is safer
this way, in case the loop change in future.

This patch should fix the issue #2683.
src/http_conv.c