aboutsummaryrefslogtreecommitdiffstats
path: root/packet-smb.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-05-22 11:32:06 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-05-22 11:32:06 +0000
commit5feaba49551a7abf363c2ca360ea45447af57f95 (patch)
tree4d995a335e29fc43ed46edb2b1981b5055ccaf21 /packet-smb.c
parent5512ef4745474cd58947e3abd56abe5cf2807e6b (diff)
make dissect_nt_sid() return a sid string that also contains the proper name for the sid.
this prettifies some dcerpc interfaces svn path=/trunk/; revision=7712
Diffstat (limited to 'packet-smb.c')
-rw-r--r--packet-smb.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/packet-smb.c b/packet-smb.c
index 3c93b67ba7..601919b9d4 100644
--- a/packet-smb.c
+++ b/packet-smb.c
@@ -3,7 +3,7 @@
* Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
* 2001 Rewrite by Ronnie Sahlberg and Guy Harris
*
- * $Id: packet-smb.c,v 1.341 2003/05/21 10:16:10 sahlberg Exp $
+ * $Id: packet-smb.c,v 1.342 2003/05/22 11:32:06 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -7109,7 +7109,11 @@ dissect_nt_sid(tvbuff_t *tvb, int offset, proto_tree *parent_tree, char *name,
}
if(sid_str){
- *sid_str = g_strdup(sid_string);
+ if(sid_name){
+ *sid_str = g_strdup_printf("%s (%s)", sid_string, sid_name);
+ } else {
+ *sid_str = g_strdup(sid_string);
+ }
}
CLEANUP_CALL_AND_POP;