Skip to content

Commit

Permalink
set payload data to 0 to avoid invalid payload
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Nov 27, 2023
1 parent 2f1a793 commit 95a1310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/mqtt5_canary/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ static int s_AwsMqtt5CanaryOperationPublish(
uint8_t payload_data[AWS_MQTT5_CANARY_PAYLOAD_SIZE_MAX];
for (i = 0; i < payload_size; i++)
{
payload_data[i] = rand() % 128 + 1;
payload_data[i] = 'a';
}
ByteCursor payload = ByteCursorFromArray(payload_data, payload_size);

Expand Down

0 comments on commit 95a1310

Please sign in to comment.