mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2026-07-28 16:53:41 +00:00
Fix possible null pointer dereference in Log (#677)
Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
This commit is contained in:
@@ -903,7 +903,7 @@ BaseType_t xPublishToTopic( MQTTContext_t * pxMqttContext,
|
||||
}
|
||||
else
|
||||
{
|
||||
LogInfo( ( "the published payload:%s \r\n ", pcPayload ) );
|
||||
LogInfo( ( "the published payload:%.*s \r\n ", payloadLength, pcPayload ) );
|
||||
/* This example publishes to only one topic and uses QOS1. */
|
||||
outgoingPublishPackets[ ucPublishIndex ].pubInfo.qos = MQTTQoS1;
|
||||
outgoingPublishPackets[ ucPublishIndex ].pubInfo.pTopicName = pcTopicFilter;
|
||||
|
||||
Reference in New Issue
Block a user