diff --git a/lib/packet_mosq.c b/lib/packet_mosq.c index 9ee571aa..992dec62 100644 --- a/lib/packet_mosq.c +++ b/lib/packet_mosq.c @@ -406,6 +406,8 @@ static int packet__read_single(struct mosquitto *mosq, enum mosquitto_client_sta #else UNUSED(state); #endif + }else{ + return MOSQ_ERR_SUCCESS; } } /* remaining_count is the number of bytes that the remaining_length