aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dcerpc-samr.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2009-10-07 07:01:55 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2009-10-07 07:01:55 +0000
commitc177dd5a0ffc6541f2eede06abd33c0e490a160e (patch)
treec5944d8c94e35d237c4198d2d0c522ed011a9143 /epan/dissectors/packet-dcerpc-samr.c
parentc8605cc746755b00e6edffe7cbbeccd6e7c0f2c1 (diff)
new samr compiled as a test by the samba4 pidl compiler from mainline
svn path=/trunk/; revision=30383
Diffstat (limited to 'epan/dissectors/packet-dcerpc-samr.c')
-rw-r--r--epan/dissectors/packet-dcerpc-samr.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/epan/dissectors/packet-dcerpc-samr.c b/epan/dissectors/packet-dcerpc-samr.c
index b983d44478..fb1c21e170 100644
--- a/epan/dissectors/packet-dcerpc-samr.c
+++ b/epan/dissectors/packet-dcerpc-samr.c
@@ -2136,7 +2136,6 @@ static int
cnf_dissect_sec_desc_buf_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
{
guint64 len;
- guint32 len32;
dcerpc_info *di = NULL;
e_ctx_hnd *polhnd = NULL;
dcerpc_call_value *dcv = NULL;
@@ -2149,10 +2148,6 @@ cnf_dissect_sec_desc_buf_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_t
}
offset = dissect_ndr_uint3264 (tvb, offset, pinfo, tree, drep,
hf_samr_sec_desc_buf_len, &len);
-
- DISSECTOR_ASSERT(len<=G_MAXUINT32);
- len32 = (guint32)len;
-
dcv = (dcerpc_call_value *)di->call_data;
if(dcv){
polhnd = dcv->pol;
@@ -2178,8 +2173,8 @@ cnf_dissect_sec_desc_buf_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_t
ami=&samr_alias_access_mask_info;
break;
}
- dissect_nt_sec_desc(tvb, offset, pinfo, tree, drep, TRUE, len32, ami);
- offset += len32;
+ dissect_nt_sec_desc(tvb, offset, pinfo, tree, drep, TRUE, len, ami);
+ offset += len;
return offset;
}
static int