IEEE80211-radio: Fix divide by zero
[metze/wireshark/wip.git] / epan / dissectors / packet-ieee80211-radio.c
index 70404127c43a9b4a7cc34f6942c13c0d8322a29c..2b78c7993461a67e06f9758ec6846bc5de98b4b7 100644 (file)
@@ -882,7 +882,7 @@ dissect_wlan_radio_phdr (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree,
     frame_length += 4;
   }
 
-  if (have_data_rate) {
+  if (have_data_rate && data_rate > 0) {
     /* duration calculations */
     gboolean assumed_short_preamble = FALSE;
     gboolean assumed_non_greenfield = FALSE;