aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dcerpc-samr.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2009-10-07 09:47:45 +0000
committerAnders Broman <anders.broman@ericsson.com>2009-10-07 09:47:45 +0000
commit6de05a04763b7c9b69b2b39c71a227a17f99f301 (patch)
treec6bc256561924e594eeaaae718f231a8d258da5f /epan/dissectors/packet-dcerpc-samr.c
parent5bc9611d56c0921e04eab2000e0b020569356e8c (diff)
Make the windows build compile again.
(Probably not the right fix). svn path=/trunk/; revision=30388
Diffstat (limited to 'epan/dissectors/packet-dcerpc-samr.c')
-rw-r--r--epan/dissectors/packet-dcerpc-samr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-dcerpc-samr.c b/epan/dissectors/packet-dcerpc-samr.c
index fb1c21e170..10f88c6e2c 100644
--- a/epan/dissectors/packet-dcerpc-samr.c
+++ b/epan/dissectors/packet-dcerpc-samr.c
@@ -2173,8 +2173,9 @@ 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, len, ami);
- offset += len;
+ DISSECTOR_ASSERT(len<=G_MAXUINT32);
+ dissect_nt_sec_desc(tvb, offset, pinfo, tree, drep, TRUE, (guint32)len, ami);
+ offset += (guint32)len;
return offset;
}
static int