Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 2e1f32f

Browse files
Juha Heiskanenjuhhei01
authored andcommitted
Fixed WS_NESTED_IE information discover return length check.
Change-Id: I0f3c11aadfeb1c959f0f3c5be0919fe54e732e94
1 parent 445745a commit 2e1f32f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/6LoWPAN/ws/ws_llc_data_service.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ static void ws_llc_mac_indication_cb(const mac_api_t* api, const mcps_data_ind_t
465465
ws_us_ie_t us_ie;
466466
bool us_ie_inline = false;
467467
ws_wp_nested.id = WS_WP_NESTED_IE;
468-
if (mac_ie_payload_discover(ie_ext->payloadIeList, ie_ext->payloadIeListLength, &ws_wp_nested) < 2) {
468+
if (mac_ie_payload_discover(ie_ext->payloadIeList, ie_ext->payloadIeListLength, &ws_wp_nested) > 2) {
469469
us_ie_inline = ws_wp_nested_us_read(ws_wp_nested.content_ptr, ws_wp_nested.length, &us_ie);
470470
}
471471

0 commit comments

Comments
 (0)