Fix a wrong length when there is unknown Atheros IE Data
authoralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 29 May 2011 12:16:53 +0000 (12:16 +0000)
committeralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 29 May 2011 12:16:53 +0000 (12:16 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37458 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-ieee80211.c

index 61bc06342bf385cd4e83ab2c80af0962e41ab334..78936e5a716421f969aef32031aff38186c7c5f6 100644 (file)
@@ -5000,7 +5000,7 @@ dissect_vendor_ie_atheros(proto_item * item _U_, proto_tree * ietree,
     }
   }
   if(offset < tag_end){
-   ti = proto_tree_add_item(ietree, hf_ieee80211_atheros_ie_data, tvb, offset, tag_len, FALSE);
+   ti = proto_tree_add_item(ietree, hf_ieee80211_atheros_ie_data, tvb, offset, tag_end - offset, FALSE);
    expert_add_info_format(pinfo, ti, PI_UNDECODED, PI_WARN, "Unknown Data (not interpreted)");
   }