wireshark/wireshark-0019-Bugfix-port-number-endianness.-Bug-9530-https-bugs.w.patch
Peter Lemenkov b23552849b Fix FTBFS in Rawhide
- Fix endianness in the Bitcoin protocol dissector (patch no. 19)
- Last-minute fix for wrongly backported change (patch no. 20)
- Recent Glib doesn't provide g_memmove macro anymore so we have to fallback to
  memmove (patch no. 21)

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
2013-12-19 14:08:43 +04:00

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;
}