aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-09-21 06:48:31 +0000
committerGuy Harris <guy@alum.mit.edu>2004-09-21 06:48:31 +0000
commit5225236d4da6ce453f539c1f19bdcbbadcd3865f (patch)
treeb0408561fc223d47cfce7c1562fa509414d12ce2
parent6f0ad62d144c727276f8e3d6c462839b19cd73e1 (diff)
From Viorel Suman: fields in TALI are little-endian, so in the "get PDU
length" routine, fetch the length field with "tvb_get_letohs()". svn path=/trunk/; revision=12058
-rw-r--r--epan/dissectors/packet-tali.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-tali.c b/epan/dissectors/packet-tali.c
index b0d72b8a80..0a080820fa 100644
--- a/epan/dissectors/packet-tali.c
+++ b/epan/dissectors/packet-tali.c
@@ -85,7 +85,7 @@ get_tali_pdu_len(tvbuff_t *tvb, int offset)
{
guint16 length;
- length = tvb_get_ntohs(tvb, offset + TALI_SYNC_LENGTH + TALI_OPCODE_LENGTH);
+ length = tvb_get_letohs(tvb, offset + TALI_SYNC_LENGTH + TALI_OPCODE_LENGTH);
return length+TALI_HEADER_LENGTH;
}