diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-02-05 08:06:40 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-02-05 08:06:40 +0000 |
commit | 7b77fdec833baef25ac1f7a8d41e9b65e0b527db (patch) | |
tree | e085184313922c432492320e1c511a7af867b7bc /packet-tns.c | |
parent | 09995a21277ef00e51f4b5c34884ff6d39c09b67 (diff) | |
download | wireshark-7b77fdec833baef25ac1f7a8d41e9b65e0b527db.tar.gz wireshark-7b77fdec833baef25ac1f7a8d41e9b65e0b527db.tar.bz2 wireshark-7b77fdec833baef25ac1f7a8d41e9b65e0b527db.zip |
Sometimes the trace stuff doesn't appear in connect messages.
svn path=/trunk/; revision=7079
Diffstat (limited to 'packet-tns.c')
-rw-r--r-- | packet-tns.c | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/packet-tns.c b/packet-tns.c index e132bc9f94..0a55bf9471 100644 --- a/packet-tns.c +++ b/packet-tns.c @@ -1,7 +1,7 @@ /* packet-tns.c * Routines for Oracle TNS packet dissection * - * $Id: packet-tns.c,v 1.38 2003/01/31 03:17:46 guy Exp $ + * $Id: packet-tns.c,v 1.39 2003/02/05 08:06:40 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -471,26 +471,33 @@ static void dissect_tns_connect(tvbuff_t *tvb, int offset, packet_info *pinfo, } offset += 1; - if ( connect_tree ) + /* + * XXX - sometimes it appears that this stuff isn't present + * in the packet. + */ + if (offset + 16 <= tns_offset+cd_offset) { - proto_tree_add_item(connect_tree, hf_tns_trace_cf1, tvb, - offset, 4, FALSE); - } - offset += 4; + if ( connect_tree ) + { + proto_tree_add_item(connect_tree, hf_tns_trace_cf1, tvb, + offset, 4, FALSE); + } + offset += 4; - if ( connect_tree ) - { - proto_tree_add_item(connect_tree, hf_tns_trace_cf2, tvb, - offset, 4, FALSE); - } - offset += 4; + if ( connect_tree ) + { + proto_tree_add_item(connect_tree, hf_tns_trace_cf2, tvb, + offset, 4, FALSE); + } + offset += 4; - if ( connect_tree ) - { - proto_tree_add_item(connect_tree, hf_tns_trace_cid, tvb, - offset, 8, FALSE); + if ( connect_tree ) + { + proto_tree_add_item(connect_tree, hf_tns_trace_cid, tvb, + offset, 8, FALSE); + } + offset += 8; } - offset += 8; if ( connect_tree && cd_len > 0) { |