diff options
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-ieee80211.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ieee80211.c b/epan/dissectors/packet-ieee80211.c index 218592809a..9f37fae8a2 100644 --- a/epan/dissectors/packet-ieee80211.c +++ b/epan/dissectors/packet-ieee80211.c @@ -9901,7 +9901,8 @@ wnm_notification_req(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, int of len = tvb_reported_length_remaining(tvb, offset); if (wnm_type == 0) { - while (len > 0) { + int offset_end = offset + len; + while (offset < offset_end) { int start_offset = offset; proto_tree *wnm_list = NULL; proto_item *wnm_item = NULL; |