aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-01-31 06:47:55 +0000
committerGuy Harris <guy@alum.mit.edu>2003-01-31 06:47:55 +0000
commit00f68c6f2ad4cf14121bee34da715aba03608551 (patch)
treecf72e0153ab2811cab74e7e50a253f538b038fad
parent2f725ad0d34a10c1503df7767c39564e85444606 (diff)
If "dissect_ndr_nt_STRING()" is being used to dissect a byte string
rather than a character string, don't decorate anything above that item in the tree with the "string". svn path=/trunk/; revision=7058
-rw-r--r--packet-dcerpc-nt.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/packet-dcerpc-nt.c b/packet-dcerpc-nt.c
index 146cc903fb..56ba3d7527 100644
--- a/packet-dcerpc-nt.c
+++ b/packet-dcerpc-nt.c
@@ -2,7 +2,7 @@
* Routines for DCERPC over SMB packet disassembly
* Copyright 2001-2003, Tim Potter <tpot@samba.org>
*
- * $Id: packet-dcerpc-nt.c,v 1.60 2003/01/30 22:42:57 tpot Exp $
+ * $Id: packet-dcerpc-nt.c,v 1.61 2003/01/31 06:47:55 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -298,9 +298,15 @@ dissect_ndr_nt_STRING(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *parent_tree,
char *drep, int hf_index)
{
+ header_field_info *hfi;
+
+ hfi = proto_registrar_get_nth(hf_index);
+
return dissect_ndr_nt_STRING_cb(
tvb, offset, pinfo, parent_tree, drep, hf_index,
- cb_str_postprocess, GINT_TO_POINTER(1));
+ cb_str_postprocess,
+ hfi->type == FT_STRING ? GINT_TO_POINTER(1):
+ GINT_TO_POINTER(0));
}
/* This function is used to dissect a DCERPC encoded 64 bit time value.