Skip to content

Commit

Permalink
* MDF [mqtt_parser] fix wrong logging condition
Browse files Browse the repository at this point in the history
Signed-off-by: jaylin <jaylin@emqx.io>
  • Loading branch information
JaylinYu committed Dec 9, 2024
1 parent 539c3d6 commit 8bc759b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sp/protocol/mqtt/mqtt_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8bc759b

Please sign in to comment.