diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-07-27 18:31:56 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-07-27 18:31:56 +0000 |
commit | c11d596fb7771a808f2e10917cf9a122dd74ec0a (patch) | |
tree | f20df16e295042307391283be8f45ef6eb90e600 | |
parent | 52d5904afd6e0fb3c97de2756797a786a1d9ea74 (diff) |
Update from Frank Singleton to get rid of a bogus "Malformed Frame"
indication when reading an IOR with TAG_MULTIPLE_COMPONENTS.
svn path=/trunk/; revision=3794
-rw-r--r-- | packet-giop.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packet-giop.c b/packet-giop.c index e18704716d..25c3d1848e 100644 --- a/packet-giop.c +++ b/packet-giop.c @@ -9,7 +9,7 @@ * Frank Singleton <frank.singleton@ericsson.com> * Trevor Shepherd <eustrsd@am1.ericsson.se> * - * $Id: packet-giop.c,v 1.44 2001/07/26 16:59:28 guy Exp $ + * $Id: packet-giop.c,v 1.45 2001/07/27 18:31:56 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -4385,16 +4385,16 @@ static void decode_TaggedProfile(tvbuff_t *tvb, packet_info *pinfo, proto_tree * 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); } |