bgp: Avoid divide by zero

Bug: 13476
Change-Id: I399df46c9d5f6d0d464ecc9cf8d44eddf709f7dc
Reviewed-on: https://code.wireshark.org/review/20499
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Stig Bjørlykke 2017-03-11 23:16:11 +01:00 committed by Michael Mann
parent c62497066e
commit f8abec1f37
1 changed files with 1 additions and 1 deletions

View File

@ -6496,7 +6496,7 @@ dissect_bgp_update_ext_com(proto_tree *parent_tree, tvbuff_t *tvb, guint16 tlen,
raw_value = tvb_get_ntohl(tvb, offset+4);
proto_tree_add_uint_format_value(community_tree, hf_bgp_ext_com_eigrp_bw,
tvb, offset+4, 4, raw_value, "%u (%u Kbps)", raw_value, 2560000000U / raw_value);
tvb, offset+4, 4, raw_value, "%u (%u Kbps)", raw_value, raw_value ? (2560000000U / raw_value) : 0);
proto_item_append_text(community_tree, ", B: %u", raw_value);
}
break;