From 8bc759b1411b1da8687de8a39b643fa6ecd6b0bb Mon Sep 17 00:00:00 2001 From: jaylin Date: Mon, 9 Dec 2024 11:38:27 +0800 Subject: [PATCH] * MDF [mqtt_parser] fix wrong logging condition Signed-off-by: jaylin --- src/sp/protocol/mqtt/mqtt_parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sp/protocol/mqtt/mqtt_parser.c b/src/sp/protocol/mqtt/mqtt_parser.c index c10afdcc6..472b7617c 100644 --- a/src/sp/protocol/mqtt/mqtt_parser.c +++ b/src/sp/protocol/mqtt/mqtt_parser.c @@ -125,7 +125,8 @@ get_value_size(uint64_t value) break; } } - if (i == 4 && value > pow) { + if (i == 5 && value > pow) { + log_error("i %d value %ld pow %ld", i, value, pow); log_error("Malformaed variable value detected!"); } return len;