summaryrefslogtreecommitdiff
path: root/packet-dcerpc-samr.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-05-21 10:39:19 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-05-21 10:39:19 +0000
commit75f18ecfeea688300485360d37327caf9552db90 (patch)
tree4bbbb0398648100c650581611e5c3cea75e0dac6 /packet-dcerpc-samr.c
parent14f5d761c197c141b6577c208e991f822394009b (diff)
downloadwireshark-75f18ecfeea688300485360d37327caf9552db90.tar.gz
Make one QIP infolevel specify a sid hf field and update the embryonic sid snooping framework to handle the new hw name
svn path=/trunk/; revision=7709
Diffstat (limited to 'packet-dcerpc-samr.c')
-rw-r--r--packet-dcerpc-samr.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/packet-dcerpc-samr.c b/packet-dcerpc-samr.c
index 1f8937e532..d1b8fe2e3a 100644
--- a/packet-dcerpc-samr.c
+++ b/packet-dcerpc-samr.c
@@ -3,7 +3,7 @@
* Copyright 2001,2003 Tim Potter <tpot@samba.org>
* 2002 Added all command dissectors Ronnie Sahlberg
*
- * $Id: packet-dcerpc-samr.c,v 1.89 2003/05/21 10:16:09 sahlberg Exp $
+ * $Id: packet-dcerpc-samr.c,v 1.90 2003/05/21 10:39:19 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -478,7 +478,13 @@ dissect_ndr_nt_SID(tvbuff_t *tvb, int offset, packet_info *pinfo,
dcerpc_info *di = (dcerpc_info *)pinfo->private_data;
dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data;
char *sid_str;
+ char *name;
+ if(di->hf_index!=-1){
+ name=proto_registrar_get_name(di->hf_index);
+ } else {
+ name="Domain";
+ }
if(di->conformant_run){
/* just a run to handle conformant arrays, no scalars to dissect */
return offset;
@@ -490,7 +496,7 @@ dissect_ndr_nt_SID(tvbuff_t *tvb, int offset, packet_info *pinfo,
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_samr_count, NULL);
- offset = dissect_nt_sid(tvb, offset, tree, "Domain", &sid_str, hf_sid);
+ offset = dissect_nt_sid(tvb, offset, tree, name, &sid_str, hf_sid);
dcv->private_data = sid_str;