* Copyright 2001,2003 Tim Potter <tpot@samba.org>
* 2002 Added all command dissectors Ronnie Sahlberg
*
- * $Id: packet-dcerpc-samr.c,v 1.90 2003/05/21 10:39:19 sahlberg Exp $
+ * $Id: packet-dcerpc-samr.c,v 1.91 2003/05/22 11:32:06 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include "packet-smb-common.h"
#include "crypt-md4.h"
#include "crypt-rc4.h"
+#include "packet-smb-sidsnooping.h"
#ifdef NEED_SNPRINTF_H
# include "snprintf.h"
offset = dissect_nt_policy_hnd(tvb, offset, pinfo, tree, drep,
hf_samr_hnd, &policy_hnd, TRUE, FALSE);
- if (sid_str)
+ if (sid_str) {
pol_name = g_strdup_printf("OpenDomain(%s)", sid_str);
- else
+ } else {
pol_name = g_strdup("OpenDomain handle");
+ }
dcerpc_smb_store_pol_name(&policy_hnd, pol_name);
* 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>
}
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;