mirror of
https://github.com/FreeRTOS/coreMQTT
synced 2025-05-13 13:49:41 +08:00
Fix loop iteration for checking subscription QoS (#302)
This commit is contained in:
parent
cbdf3d20af
commit
4c24d173f9
@ -1840,7 +1840,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 "
|
||||
|
Loading…
x
Reference in New Issue
Block a user