Hi,
Here is a small patch to fix malformed frame when
reading an IOR with TAG_MULTIPLE_COMPONENTS.
/Frank
--
EUS/SV/Z Frank Singleton ASO Americas BSS
Office : +1 972 583 3251 ECN 800 33251
Mobile : +1 214 228 0874 Amateur Radio: VK3FCS/KM5WS
Email : frank.singleton@xxxxxxxxxxxx
Hardware: HP Omnibook 4150 running Redhat Linux 7.1 (2.4.3-12 kernel).
--- packet-giop.c 2001/07/27 12:39:43 1.1
+++ packet-giop.c 2001/07/27 13:17:00
@@ -9,7 +9,7 @@
* Frank Singleton <frank.singleton@xxxxxxxxxxxx>
* Trevor Shepherd <eustrsd@xxxxxxxxxxxxxxx>
*
- * $Id: packet-giop.c,v 1.1 2001/07/27 12:39:43 frank Exp $
+ * $Id: packet-giop.c,v 1.4 2001/07/27 13:17:00 frank Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@xxxxxxxxxxxx>
@@ -4385,16 +4385,16 @@
default:
- /* fetch all octets in this sequence */
+ /* fetch all octets in this sequence , but skip endianess */
- get_CDR_octet_seq(tvb, &profile_data, offset, seqlen_pd);
+ get_CDR_octet_seq(tvb, &profile_data, offset, seqlen_pd -1);
/* Make a printable string */
- p_profile_data = make_printable_string( profile_data, seqlen_pd );
+ p_profile_data = make_printable_string( profile_data, seqlen_pd -1);
if(tree) {
- proto_tree_add_text (tree, tvb, *offset -seqlen_pd, seqlen_pd,
+ proto_tree_add_text (tree, tvb, *offset -seqlen_pd + 1, seqlen_pd - 1,
"Profile Data: %s", p_profile_data);
}