]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mqtt: connect parser uses wrong bit field for TOPIC_ALIAS_MAXIMUM
authorWilly Tarreau <w@1wt.eu>
Mon, 11 May 2026 13:34:15 +0000 (15:34 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 May 2026 14:04:19 +0000 (16:04 +0200)
commit57878f3b5cf9048e844282e757972e9896180fa4
tree1a3baa09dbf23d9cd920d3ca93aa825072eb417a
parent448cc829e50aba94e7f02dc4e9ead85dd5359b20
BUG/MINOR: mqtt: connect parser uses wrong bit field for TOPIC_ALIAS_MAXIMUM

In mqtt_parse_connect(), the MQTT_PROP_TOPIC_ALIAS_MAXIMUM case was checking
and setting MQTT_FN_BIT_TOPIC_ALIAS instead of MQTT_FN_BIT_TOPIC_ALIAS_MAXIMUM.
This means duplicate detection for Topic-Alias-Maximum property was using the
wrong bitmask, and the actual Topic-Alias-Maximum bit was never set, making
duplicate detection ineffective for this property. The CONNACK parser already
had this correct.
src/mqtt.c