diff options
author | Evan Huus <eapache@gmail.com> | 2013-10-01 22:57:35 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-10-01 22:57:35 +0000 |
commit | e2351b686b4d1dfa1daf3c1a890aa745b1e79a5b (patch) | |
tree | 18d30aa43b45c8f34a298b747652f86dfa5fff33 /epan/dissectors/packet-ismp.c | |
parent | ccbb52b436730885dc6c6bb8f77d570567a5af8f (diff) |
Convert an _add_bytes to an _add_item (it used to be an _add_bytes_format prior
to r52272; that treats NULL as get-from-the-tvb, whereas _add_bytes treats NULL
as an error).
Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9214
svn path=/trunk/; revision=52328
Diffstat (limited to 'epan/dissectors/packet-ismp.c')
-rw-r--r-- | epan/dissectors/packet-ismp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ismp.c b/epan/dissectors/packet-ismp.c index 4bd870b587..8d7f7d0a09 100644 --- a/epan/dissectors/packet-ismp.c +++ b/epan/dissectors/packet-ismp.c @@ -353,8 +353,8 @@ dissect_ismp_edp(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_tree *ismp offset += 2; if (num_neighbors > 0) { - edp_neighbors_ti = proto_tree_add_bytes(edp_tree, hf_ismp_edp_neighbors, tvb, - offset, num_neighbors*10, NULL); + edp_neighbors_ti = proto_tree_add_item(edp_tree, hf_ismp_edp_neighbors, tvb, + offset, num_neighbors*10, ENC_NA); edp_neighbors_tree = proto_item_add_subtree(edp_neighbors_ti, ett_ismp_edp_neighbors); while ( neighbors_count < num_neighbors && tvb_reported_length_remaining(tvb, offset) >= 10) { |