mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-21 01:15:17 -04:00
BUG/MINOR: mqtt: connack parser returns MQTT_NEED_MORE_DATA on unknown property
In mqtt_parse_connack(), the switch statement's default case for unknown MQTT properties was using 'return 0' which returns MQTT_NEED_MORE_DATA. This is misleading: an unknown property should be treated as an invalid message (MQTT_INVALID_MESSAGE), like other functions do. This branches to the "end" label without touching the preset return value instead. This can be backported if needed.
This commit is contained in:
parent
128c654aac
commit
448cc829e5
1 changed files with 1 additions and 1 deletions
|
|
@ -1196,7 +1196,7 @@ static int mqtt_parse_connack(struct ist parser, struct mqtt_pkt *mpkt)
|
|||
break;
|
||||
|
||||
default:
|
||||
return 0;
|
||||
goto end;
|
||||
}
|
||||
|
||||
if (!isttest(props))
|
||||
|
|
|
|||
Loading…
Reference in a new issue