Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/mqtt_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1238,8 +1238,8 @@ int MqttDecode_PublishResp(byte* rx_buf, int rx_buf_len, byte type,
}
props_tmp = MqttDecode_Vbi(rx_payload, &props_len,
(word32)(rx_buf_len - (rx_payload - rx_buf)));
if (tmp < 0)
return tmp;
if (props_tmp < 0)
return props_tmp;

if (props_len <= (word32)(rx_buf_len - (rx_payload - rx_buf))) {
rx_payload += props_tmp;
Expand Down Expand Up @@ -1548,8 +1548,8 @@ int MqttDecode_UnsubscribeAck(byte *rx_buf, int rx_buf_len,
}
props_tmp = MqttDecode_Vbi(rx_payload, &props_len,
(word32)(rx_buf_len - (rx_payload - rx_buf)));
if (tmp < 0)
return tmp;
if (props_tmp < 0)
return props_tmp;

if (props_len <= (word32)(rx_buf_len - (rx_payload - rx_buf))) {
rx_payload += props_tmp;
Expand Down