1
0
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:
Archit Gupta 2024-07-30 07:47:06 +00:00 committed by GitHub
parent cbdf3d20af
commit 4c24d173f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1840,7 +1840,7 @@ static MQTTStatus_t validateSubscribeUnsubscribeParams( const MQTTContext_t * pC
{ {
for( iterator = 0; iterator < subscriptionCount; iterator++ ) for( iterator = 0; iterator < subscriptionCount; iterator++ )
{ {
if( pSubscriptionList->qos > MQTTQoS0 ) if( pSubscriptionList[ iterator ].qos > MQTTQoS0 )
{ {
LogError( ( "The incoming publish record list is not " LogError( ( "The incoming publish record list is not "
"initialised for QoS1/QoS2 records. Please call " "initialised for QoS1/QoS2 records. Please call "