23 lines
769 B
Diff
23 lines
769 B
Diff
|
From: Michael Mann <mmann78@netscape.net>
|
||
|
Date: Wed, 18 Dec 2013 13:15:13 +0000
|
||
|
Subject: [PATCH] Bugfix port number endianness. Bug 9530
|
||
|
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9530)
|
||
|
|
||
|
Taken from part of r52609 enhancement.
|
||
|
|
||
|
svn path=/trunk-1.10/; revision=54217
|
||
|
|
||
|
diff --git a/epan/dissectors/packet-bitcoin.c b/epan/dissectors/packet-bitcoin.c
|
||
|
index 5dd9dae..d7467da 100644
|
||
|
--- a/epan/dissectors/packet-bitcoin.c
|
||
|
+++ b/epan/dissectors/packet-bitcoin.c
|
||
|
@@ -256,7 +256,7 @@ create_address_tree(tvbuff_t *tvb, proto_item *ti, guint32 offset)
|
||
|
offset += 16;
|
||
|
|
||
|
/* port */
|
||
|
- proto_tree_add_item(tree, hf_address_port, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
||
|
+ proto_tree_add_item(tree, hf_address_port, tvb, offset, 2, ENC_BIG_ENDIAN);
|
||
|
|
||
|
return tree;
|
||
|
}
|