]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: spoe: Remove unsused variable
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 18 Mar 2026 10:26:46 +0000 (11:26 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 18 Mar 2026 10:28:33 +0000 (11:28 +0100)
Since 7a1382da7 ("BUG/MINOR: spoe: Fix condition to abort processing on
client abort"), the chn variable is no longer used in
spoe_process_event(). Let's remove it

This patch must be backported with the commit above, as far as 3.1.

src/flt_spoe.c

index e1ce537deb1eadef4b82f3ac53610f0f87e73153..39a56b11e8d8cd9c2fcdb301aae00c670998ff9d 100644 (file)
@@ -1113,8 +1113,6 @@ static int spoe_process_event(struct stream *s, struct spoe_context *ctx,
                                 agent->counters.nb_errors, agent->counters.nb_processed);
        }
        else if (ret == 0) {
-               struct channel *chn = (dir == SMP_OPT_DIR_REQ) ? &s->req : &s->res;
-
                if ((s->scf->flags & SC_FL_ERROR) ||
                    ((s->scf->flags & (SC_FL_EOS|SC_FL_ABRT_DONE)) && proxy_abrt_close_def(s->be, 1))) {
                        ctx->status_code = SPOE_CTX_ERR_INTERRUPT;