aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-windows-common.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2013-02-01 16:36:37 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2013-02-01 16:36:37 +0000
commitc6ff7f75eaa084caed88ccbca1454346335f5be8 (patch)
treefb253c09a5ee4f54d7055d0a0f50cc5ff60688b3 /epan/dissectors/packet-windows-common.c
parenta3e901f508f72a8463a59700a39794322a5ef178 (diff)
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=47424
Diffstat (limited to 'epan/dissectors/packet-windows-common.c')
-rw-r--r--epan/dissectors/packet-windows-common.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/epan/dissectors/packet-windows-common.c b/epan/dissectors/packet-windows-common.c
index 0341199a6c..3f996720fb 100644
--- a/epan/dissectors/packet-windows-common.c
+++ b/epan/dissectors/packet-windows-common.c
@@ -2595,7 +2595,7 @@ dissect_nt_security_information(tvbuff_t *tvb, int offset, proto_tree *parent_tr
int
dissect_nt_sec_desc(tvbuff_t *tvb, int offset, packet_info *pinfo,
proto_tree *parent_tree, guint8 *drep,
- gboolean len_supplied, int len,
+ gboolean len_supplied _U_, int len,
struct access_mask_info *ami)
{
proto_item *item = NULL;
@@ -2746,16 +2746,7 @@ dissect_nt_sec_desc(tvbuff_t *tvb, int offset, packet_info *pinfo,
end_offset = offset;
break;
}
- if (len_supplied) {
- /* Make sure the length isn't too large (so that we get an
- overflow) */
- /* tvb_ensure_bytes_exist(tvb, start_offset, len);*/
- } else {
- /* The length of the security descriptor is the difference
- between the starting offset and the offset past the last
- item in the descriptor. */
- len = end_offset - start_offset;
- }
+
len = end_offset - start_offset;
proto_item_set_len(item, len);