diff options
-rw-r--r-- | epan/dissectors/packet-ieee802154.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ieee802154.c b/epan/dissectors/packet-ieee802154.c index e3c5f0d9ea..6615417bb6 100644 --- a/epan/dissectors/packet-ieee802154.c +++ b/epan/dissectors/packet-ieee802154.c @@ -2959,7 +2959,7 @@ dissect_ieee802154_payload_ie(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree offset += pie_length; } } - } while ((tvb_reported_length_remaining(tvb, offset) - IEEE802154_FCS_LEN > 1) + } while ((tvb_reported_length_remaining(tvb, offset) > 1) && (pie_id != IEEE802154_PAYLOAD_IE_GID_TERM)); // Once the dissection is over, the length of the header is known |