diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-10-22 21:26:40 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-10-22 21:26:40 +0000 |
commit | 83980ea4ff46d7d80ace5a00327cd40a7b88d1d8 (patch) | |
tree | f8c05d975391e0bc1fb12914cc0630af4a679abb /packet-dcerpc.c | |
parent | c95ce5ff45d7b85fc1181d0d407a6d67f339dcd7 (diff) |
From Yaniv Kaul: if there's more than one context item in a BIND PDU, show
the number of context items before showing the first one.
svn path=/trunk/; revision=8753
Diffstat (limited to 'packet-dcerpc.c')
-rw-r--r-- | packet-dcerpc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packet-dcerpc.c b/packet-dcerpc.c index d781b6eb5f..4b28682e8c 100644 --- a/packet-dcerpc.c +++ b/packet-dcerpc.c @@ -3,7 +3,7 @@ * Copyright 2001, Todd Sabin <tas@webspan.net> * Copyright 2003, Tim Potter <tpot@samba.org> * - * $Id: packet-dcerpc.c,v 1.146 2003/10/21 07:17:14 guy Exp $ + * $Id: packet-dcerpc.c,v 1.147 2003/10/22 21:26:40 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -2033,7 +2033,7 @@ dissect_dcerpc_cn_bind (tvbuff_t *tvb, gint offset, packet_info *pinfo, proto_tree *dcerpc_tree, e_dce_cn_common_hdr_t *hdr) { conversation_t *conv = NULL; - guint8 num_ctx_items; + guint8 num_ctx_items = 0; guint i; gboolean saw_ctx_item = FALSE; guint16 ctx_id; @@ -2157,6 +2157,9 @@ dissect_dcerpc_cn_bind (tvbuff_t *tvb, gint offset, packet_info *pinfo, key.uuid = if_id; key.ver = if_ver; + if (num_ctx_items > 1) + col_append_fstr(pinfo->cinfo, COL_INFO, ", %u context items, 1st", num_ctx_items); + if ((value = g_hash_table_lookup(dcerpc_uuids, &key))) col_append_fstr(pinfo->cinfo, COL_INFO, " UUID: %s", value->name); else |