From c95c536f47fbf0daac4f6f6258ed8902766a9a3c Mon Sep 17 00:00:00 2001 From: Makoto Shimamura Date: Tue, 6 Sep 2016 22:36:33 +0900 Subject: 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 --- epan/dissectors/packet-ocfs2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-ocfs2.c') 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; -- cgit v1.2.3