diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-09-21 06:48:31 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-09-21 06:48:31 +0000 |
commit | 5225236d4da6ce453f539c1f19bdcbbadcd3865f (patch) | |
tree | b0408561fc223d47cfce7c1562fa509414d12ce2 /epan/dissectors | |
parent | 6f0ad62d144c727276f8e3d6c462839b19cd73e1 (diff) | |
download | wireshark-5225236d4da6ce453f539c1f19bdcbbadcd3865f.tar.gz wireshark-5225236d4da6ce453f539c1f19bdcbbadcd3865f.tar.bz2 wireshark-5225236d4da6ce453f539c1f19bdcbbadcd3865f.zip |
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
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-tali.c | 2 |
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; } |