Merge branch 'develop' of https://github.com/chenzhenhua5/paho.mqtt.c into chenzhenhua5-develop

This commit is contained in:
Ian Craggs 2022-09-28 13:58:40 +01:00
commit 09ffa867e4
1 changed files with 5 additions and 0 deletions

View File

@ -2080,6 +2080,11 @@ MQTTResponse MQTTClient_subscribeMany5(MQTTClient handle, int count, char* const
}
else
{
if (count < sub->qoss->count)
{
rc = MQTTCLIENT_FAILURE;
goto exit;
}
ListElement* current = NULL;
i = 0;
while (ListNextElement(sub->qoss, &current))