Ethereal-dev: [Ethereal-dev] TALI length fix in "get_tali_pdu_len" function

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Viorel Suman <vsuman@xxxxxxxx>
Date: Mon, 20 Sep 2004 16:45:07 +0300 (EEST)
Hello,

Attached is patch for TALI dissector which fix the "get_tali_pdu_len" 
function :

"tvb_get_letohs" shuld be used instead of "tvb_get_ntohs".

-- 
WBR,

Viorel Suman
Software Developer

Avalanche Mobile NV (http://www.avmob.com)
Busitel 1, Orlyplein 85
1043 DS Amsterdam
The Netherlands

Phone: +31 (0) 20 403 74 70
Fax:   +31 (0) 20 403 73 10
diff -Nur ethereal/epan/dissectors/packet-tali.c ethereal-fix/epan/dissectors/packet-tali.c
--- ethereal/epan/dissectors/packet-tali.c	2004-09-16 22:23:33.000000000 +0300
+++ ethereal-fix/epan/dissectors/packet-tali.c	2004-09-20 15:28:22.000000000 +0300
@@ -85,7 +85,7 @@
 {
   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;
 }