]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: acme: warning ‘ctx’ may be used uninitialized
authorWilliam Lallemand <wlallemand@irq6.net>
Fri, 21 Nov 2025 21:59:47 +0000 (22:59 +0100)
committerWilliam Lallemand <wlallemand@irq6.net>
Fri, 21 Nov 2025 22:04:16 +0000 (23:04 +0100)
commit0cae2f05157ac4a3f9d482780de7f98070b02e97
tree82513ccdbf54871844ba110759e5115da6c23e83
parentd77d3479ed2804c0dc563041a5d598984834b8a0
BUG/MINOR: acme: warning ‘ctx’ may be used uninitialized

Please compiler with maybe-uninitialized warning

src/acme.c: In function ‘cli_acme_chall_ready_parse’:
include/haproxy/task.h:215:9: error: ‘ctx’ may be used uninitialized [-Werror=maybe-uninitialized]
  215 |         _task_wakeup(t, f, MK_CALLER(WAKEUP_TYPE_TASK_WAKEUP, 0, 0))
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/acme.c:2903:17: note: in expansion of macro ‘task_wakeup’
 2903 |                 task_wakeup(ctx->task, TASK_WOKEN_MSG);
      |                 ^~~~~~~~~~~
src/acme.c:2862:26: note: ‘ctx’ was declared here
 2862 |         struct acme_ctx *ctx;
      |                          ^~~

Backport to 3.2.
src/acme.c