Azure / azure-sdk-for-c

This repository is for active development of the Azure SDK for Embedded C. For consumers of the SDK we recommend visiting our versioned developer docs at https://azure.github.io/azure-sdk-for-c.
MIT License
225 stars 120 forks source link

[RPC Server] fix segfault on incoming publish with missing properties #2668

Closed vaavva closed 1 year ago

vaavva commented 1 year ago

Problem: On an incoming RPC execution request, if the required MQTT5 properties are missing, an error is sent back to the MQTT client, causing a seg fault

Fix: Instead of sending this error to the MQTT client, which can't do anything about the problem, instead just log and ignore the publish