diff --git a/src/mqtt_packet.c b/src/mqtt_packet.c index 5bbd0c7f..16e6d45d 100644 --- a/src/mqtt_packet.c +++ b/src/mqtt_packet.c @@ -619,6 +619,7 @@ int MqttDecode_Props(MqttPacketType packet, MqttProp** props, byte* pbuf, /* Invalid length */ rc = MQTT_TRACE_ERROR(MQTT_CODE_ERROR_PROPERTY); } + } else { /* Invalid length */ rc = MQTT_TRACE_ERROR(MQTT_CODE_ERROR_PROPERTY);