From cbc10b896e647d5c62d9b021f3e2dd391d14dc4f Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 13 May 2025 18:26:25 +0200 Subject: [PATCH] BUG/MINOR: mux-spop: Make the demux stream ID a signed integer The demux stream ID of a SPOP connection, used when received frames are parsed, must be a signed integer because it is set to -1 when the SPOP connection is initialized. It will be important for the next fix. This patch must be backported to 3.1. --- src/mux_spop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mux_spop.c b/src/mux_spop.c index c55074c24..fbf1fcb13 100644 --- a/src/mux_spop.c +++ b/src/mux_spop.c @@ -31,7 +31,7 @@ struct spop_conn { uint32_t max_id; /* highest ID known on this connection, <0 before HELLO handshake */ uint32_t flags; /* Connection flags: SPOP_CF_* */ - uint32_t dsi; /* dmux stream ID (<0 = idle ) */ + int32_t dsi; /* dmux stream ID (<0 = idle ) */ uint32_t dfi; /* dmux frame ID (if dsi >= 0) */ uint32_t dfl; /* demux frame length (if dsi >= 0) */ uint32_t dff; /* demux frame flags */