aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ocfs2.c
diff options
context:
space:
mode:
authorMakoto Shimamura <makoto.shimamura@toshiba.co.jp>2016-09-06 22:36:33 +0900
committerAnders Broman <a.broman58@gmail.com>2016-09-07 04:28:19 +0000
commitc95c536f47fbf0daac4f6f6258ed8902766a9a3c (patch)
tree09c68489b0547726c74600d27610dafdc0d31f20 /epan/dissectors/packet-ocfs2.c
parent4c39e19ff3f2e31d1323dc95a3f2b2e958ffa752 (diff)
OCFS2: dissector incorrectly takes pdu length as little endian
This patch fixes incorrect endian conversion in pdu length. Actually pdu length is big endian. Ping-Bug: 12122 Change-Id: I9f8827293e684a5b4c957138f5879efdd140c500 Reviewed-on: https://code.wireshark.org/review/17533 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-ocfs2.c')
-rw-r--r--epan/dissectors/packet-ocfs2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ocfs2.c b/epan/dissectors/packet-ocfs2.c
index 4195ce4a57..ece7dd59ba 100644
--- a/epan/dissectors/packet-ocfs2.c
+++ b/epan/dissectors/packet-ocfs2.c
@@ -1158,7 +1158,7 @@ get_ocfs2_pdu_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset, void *data
guint16 plen;
/* Get the length of the data from header. */
- plen = tvb_get_letohs(tvb, offset + 2);
+ plen = tvb_get_ntohs(tvb, offset + 2);
/* That length doesn't include the header itself, add that in. */
return plen + 24;