Skip to content

Commit

Permalink
Fix loop iteration for checking subscription QoS
Browse files Browse the repository at this point in the history
  • Loading branch information
archigup committed Jul 30, 2024
1 parent 238350a commit 018caba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/core_mqtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1842,7 +1842,7 @@ static MQTTStatus_t validateSubscribeUnsubscribeParams( const MQTTContext_t * pC
{
for( iterator = 0; iterator < subscriptionCount; iterator++ )
{
if( pSubscriptionList->qos > MQTTQoS0 )
if( pSubscriptionList[ iterator ].qos > MQTTQoS0 )
{
LogError( ( "The incoming publish record list is not "
"initialised for QoS1/QoS2 records. Please call "
Expand Down

0 comments on commit 018caba

Please sign in to comment.