]> git.kaiwu.me - haproxy.git/commit
CLEANUP: payload: remove dead code in smp_client_hello_parse()
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 18 Aug 2026 14:27:34 +0000 (14:27 +0000)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 18 Aug 2026 14:28:35 +0000 (16:28 +0200)
commit489163624c2e8f929d9eb86998aad978e68dc0d3
tree2b0c8f6c29f290e7e4757d9c59a67bcb90a871d1
parente66fd4bada53acf2f3e094070c8662b6c36dabd9
CLEANUP: payload: remove dead code in smp_client_hello_parse()

Remove dead code reported by Coverity (CID 1660132, GH #3471). bleft
is already guaranteed to be >= hs_len >= 49 by the two preceding
checks (bleft < 5 / hs_len < 49 / bleft < hs_len), so the
`if (bleft < 1)` check right after can never be true.
src/payload.c