]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: ech: fix label at end of compound statement
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 3 Aug 2026 12:33:06 +0000 (12:33 +0000)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 3 Aug 2026 12:42:31 +0000 (14:42 +0200)
commitdcc1b7f9b61187f79af7940d0f5954586122c44d
treeaf0d01b2159ebd97ef45545646e5f945dbbec7c9
parente5237c746f84714d0b42d53c794bc249160291ba
BUG/MINOR: ech: fix label at end of compound statement

The "ignore_entry" label used to skip non ".ech" directory entries in
load_echkeys() was placed right before the closing brace of the "for"
loop, with no statement attached to it. A label with no following
statement is only valid since C23, so strict compilers reject it:

  src/ech.c:96:2: error: label at end of compound statement is a C23
  extension [-Werror,-Wc23-extensions]

Add a null statement after the label.
src/ech.c