Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Krey committed Jan 17, 2016
2 parents 0547f75 + acf7c0d commit b1d2c37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MQTTClient/MQTTClient/MQTTMessage.m
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ + (MQTTMessage *)messageFromData:(NSData *)data {
}
}
if (type == MQTTSuback) {
if (message.data.length != 3) {
if (message.data.length < 3) {
DDLogWarn(@"[MQTTMessage] missing suback variable header");
message = nil;
}
Expand Down

0 comments on commit b1d2c37

Please sign in to comment.