]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: ssl: fix proxy lookup for show ssl sni quic-interop
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 15 Jul 2026 15:11:22 +0000 (17:11 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 16 Jul 2026 14:53:30 +0000 (16:53 +0200)
commit9993f29007cac184ce8b9ab42e4ba8c780f38da6
treef94cf16558fabe9f109073d46cfe497f6c7af7bc
parenta4f5eea8418eb5cd91a50ac311185e30c6bbb4a8
BUG/MINOR: ssl: fix proxy lookup for show ssl sni

Command "show ssl sni" accepts an extra option -f to restrict output to
a single frontend. If the specified proxy is not found, an error message
should be displayed. However, this does not behave as expected as no
error is reported and the first proxy in the list is used as a sort of
fallback.

This patch fixes the command parsing function when -f is used. The loop
is now interrupted as soon as a matching entry is found. After the loop,
if local variable <px> is still NULL, it indicates that no matching
entry was found. The error message is displayed as intended and the
command is not executed.

This must be backported up to 3.2.
src/ssl_ckch.c