Skip to content

Conversation

nickajacks1
Copy link

The issue would occur if the broker does not insert a zero for the properties length.

Please provide enough information so that others can review your pull request:

Testing

Tested against a mosquitto plugin that kicks clients. This sends the client a packet with the fixed header, a message len of 1, and a reason code, but no props length (allowed by MQTT v5 spec). Validated that with changes, OnServerDisconnect is called.
Added a test to replicate this scenario.

Closing issues

closes #302

The issue would occur if the broker does not insert a zero for the
properties length.

Fixes: eclipse-paho#302
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OnServerDisconnect is not called when a DISCONNECT packet has a reason code but no properties
1 participant