Skip to content

Commit 86c6d19

Browse files
author
Juha Heiskanen
committed
Fixed WS IE PCAP read operation wrong length usage.
1 parent cd3a4c2 commit 86c6d19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/6LoWPAN/ws/ws_ie_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ bool ws_wp_nested_pcap_read(uint8_t *data, uint16_t length, struct ws_phy_cap_in
11731173
}
11741174
ws_pcap_list->length_of_list = length_of_cap;
11751175

1176-
for (uint8_t i = 0; i < length; length_of_cap++) {
1176+
for (uint8_t i = 0; i < length_of_cap; i++) {
11771177
ws_pcap_list->pcap[i].phy_type = *data++ & 7;
11781178
ws_pcap_list->pcap[i].operation_mode = common_read_16_bit_inverse(data);
11791179
data += 2;

0 commit comments

Comments
 (0)