aboutsummaryrefslogtreecommitdiffstats
path: root/packet-dcerpc-nt.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-08-22 18:24:06 +0000
committerGuy Harris <guy@alum.mit.edu>2002-08-22 18:24:06 +0000
commitcc6c8214eb17ac2eef5413859a9a589ea5f58cbe (patch)
treef281005259a59f1734cdfec4b6aa9e3cec94105f /packet-dcerpc-nt.c
parentccf23723504fec4a34ee1019975f698a5a449acb (diff)
Put the top-level item for an NT access mask into the protocol tree with
"proto_tree_add_uint()" and the hfindex passed to us, rather than as a text item. That means it has the name our caller gave to it, and that it's a filterable field. svn path=/trunk/; revision=6062
Diffstat (limited to 'packet-dcerpc-nt.c')
-rw-r--r--packet-dcerpc-nt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/packet-dcerpc-nt.c b/packet-dcerpc-nt.c
index 31c04ee7cf..f260a5e15f 100644
--- a/packet-dcerpc-nt.c
+++ b/packet-dcerpc-nt.c
@@ -2,7 +2,7 @@
* Routines for DCERPC over SMB packet disassembly
* Copyright 2001, Tim Potter <tpot@samba.org>
*
- * $Id: packet-dcerpc-nt.c,v 1.44 2002/08/22 01:13:12 tpot Exp $
+ * $Id: packet-dcerpc-nt.c,v 1.45 2002/08/22 18:24:06 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -921,8 +921,7 @@ dissect_nt_access_mask(tvbuff_t *tvb, gint offset, packet_info *pinfo,
offset = dissect_ndr_uint32(tvb, offset, pinfo, NULL, drep,
hfindex, &access);
- item = proto_tree_add_text(tree, tvb, offset - 4, 4,
- "Access Mask: 0x%08x", access);
+ item = proto_tree_add_uint(tree, hfindex, tvb, offset - 4, 4, access);
subtree = proto_item_add_subtree(item, ett_nt_access_mask);