]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
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)
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

index fdc14ccc6c353de803a4c70f9a28aa54621fd46f..71adf9256423718e888a95914bddd511ba08cc81 100644 (file)
--- a/src/ech.c
+++ b/src/ech.c
@@ -94,6 +94,7 @@ failed:
                                goto end;
                }
 ignore_entry:
+               ;
        }
 
        if (somekeyworked == 0) {