aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bittorrent.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-10-11 15:11:51 +0000
committerBill Meier <wmeier@newsguy.com>2011-10-11 15:11:51 +0000
commit13f39288a07baae802f2d3a7f9c261cecd910115 (patch)
tree484845ee96d6858b09e16ea03f1e449fec18193e /epan/dissectors/packet-bittorrent.c
parente98b54c098e50357d9bd7d31551237b361399103 (diff)
Fix a bug wherein proto_tree_add_uint() was intended instead of proto_tree_add_item();
This bug would have caused display of a FT_UINT32 field with the wrong endianness. (Replaces change made in SVN #39350). svn path=/trunk/; revision=39360
Diffstat (limited to 'epan/dissectors/packet-bittorrent.c')
-rw-r--r--epan/dissectors/packet-bittorrent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-bittorrent.c b/epan/dissectors/packet-bittorrent.c
index ba411dab3f..4e6e9a78ad 100644
--- a/epan/dissectors/packet-bittorrent.c
+++ b/epan/dissectors/packet-bittorrent.c
@@ -726,7 +726,7 @@ static void dissect_bittorrent_message (tvbuff_t *tvb, packet_info *pinfo, proto
offset += 4;
length -= 4;
piece_begin = tvb_get_ntohl(tvb, offset);
- proto_tree_add_item(mtree, hf_bittorrent_piece_begin, tvb, offset, 4, ENC_BIG_ENDIAN);
+ proto_tree_add_uint(mtree, hf_bittorrent_piece_begin, tvb, offset, 4, piece_begin);
offset += 4;
length -= 4;
proto_tree_add_item(mtree, hf_bittorrent_piece_data, tvb, offset, length, ENC_NA);