]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: acme: no need to reset ctx state and http_state before nextreq
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 15 Apr 2026 14:17:39 +0000 (16:17 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 15 Apr 2026 14:17:39 +0000 (16:17 +0200)
The nextreq label already implement setting http_state to ACME_HTTP_REQ
and setting ctx->state to st. It is only needed to set the st variable
before jumping to nextreq.

src/acme.c

index 6e79769551479e3af47411771497fd46ef34556c..cb419d46773cc6b3bd680f41eebd072a46778168 100644 (file)
@@ -2564,8 +2564,6 @@ re:
                        /* if everything is ready, let's do the challenge request */
                        if ((all_cond_ready & ctx->cfg->cond_ready) == ctx->cfg->cond_ready) {
                                st = ACME_CHALLENGE;
-                               ctx->http_state = ACME_HTTP_REQ;
-                               ctx->state = st;
                                goto nextreq;
                        }
 
@@ -2725,8 +2723,6 @@ re:
 
                        /* not all ready yet, retry after dns-delay */
                        st = ACME_RSLV_RETRY_DELAY;
-                       ctx->http_state = ACME_HTTP_REQ;
-                       ctx->state = st;
                        goto nextreq;
                }
                break;