Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of MQTTPacket by
Diff: MQTTSubscribeClient.c
- Revision:
- 16:d0b3886ada32
- Parent:
- 14:c2052aee81de
- Child:
- 17:c5bd28cc139a
diff -r f0ae0b8d4418 -r d0b3886ada32 MQTTSubscribeClient.c --- a/MQTTSubscribeClient.c Fri Aug 01 16:27:19 2014 +0000 +++ b/MQTTSubscribeClient.c Fri Aug 01 16:58:18 2014 +0000 @@ -107,6 +107,8 @@ FUNC_ENTRY; header.byte = readChar(&curdata); + if (header.bits.type != SUBACK) + goto exit; curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */ enddata = curdata + mylen;
