Skip to content

Commit cbc10b8

Browse files
committed
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.
1 parent 6d68bea commit cbc10b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mux_spop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct spop_conn {
3131
uint32_t max_id; /* highest ID known on this connection, <0 before HELLO handshake */
3232
uint32_t flags; /* Connection flags: SPOP_CF_* */
3333

34-
uint32_t dsi; /* dmux stream ID (<0 = idle ) */
34+
int32_t dsi; /* dmux stream ID (<0 = idle ) */
3535
uint32_t dfi; /* dmux frame ID (if dsi >= 0) */
3636
uint32_t dfl; /* demux frame length (if dsi >= 0) */
3737
uint32_t dff; /* demux frame flags */

0 commit comments

Comments
 (0)