mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-15 17:27:46 -04: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:
parent
dfa1023504
commit
b4cc7670df
1 changed files with 1 additions and 1 deletions
|
@ -903,7 +903,7 @@ BaseType_t xPublishToTopic( MQTTContext_t * pxMqttContext,
|
||||||
}
|
}
|
||||||
else
|
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. */
|
/* This example publishes to only one topic and uses QOS1. */
|
||||||
outgoingPublishPackets[ ucPublishIndex ].pubInfo.qos = MQTTQoS1;
|
outgoingPublishPackets[ ucPublishIndex ].pubInfo.qos = MQTTQoS1;
|
||||||
outgoingPublishPackets[ ucPublishIndex ].pubInfo.pTopicName = pcTopicFilter;
|
outgoingPublishPackets[ ucPublishIndex ].pubInfo.pTopicName = pcTopicFilter;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue