msdp: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang

Change-Id: Ie98f0c70190206b4682bf1b1b13add51c52303db
Reviewed-on: https://code.wireshark.org/review/23009
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Alexis La Goutte 2017-08-08 08:41:31 +02:00 committed by Michael Mann
parent b8c2228321
commit e02ca799d9
1 changed files with 3 additions and 3 deletions

View File

@ -530,7 +530,7 @@ static void dissect_msdp_notification(tvbuff_t *tvb, packet_info *pinfo, proto_t
DISSECTOR_ASSERT(reported_length >= 0);
if (reported_length > tlv_len)
reported_length = tlv_len;
next_tvb = tvb_new_subset_length(tvb, *offset, tlv_len);
next_tvb = tvb_new_subset_length(tvb, *offset, reported_length);
dissect_msdp(next_tvb, pinfo, tree, NULL);
}
*offset += tlv_len;
@ -541,7 +541,7 @@ static void dissect_msdp_notification(tvbuff_t *tvb, packet_info *pinfo, proto_t
DISSECTOR_ASSERT(reported_length >= 0);
if (reported_length > tlv_len)
reported_length = tlv_len;
next_tvb = tvb_new_subset_length(tvb, *offset, tlv_len);
next_tvb = tvb_new_subset_length(tvb, *offset, reported_length);
dissect_msdp(next_tvb, pinfo, tree, NULL);
}
*offset += tlv_len;
@ -567,7 +567,7 @@ static void dissect_msdp_notification(tvbuff_t *tvb, packet_info *pinfo, proto_t
DISSECTOR_ASSERT(reported_length >= 0);
if (reported_length > tlv_len)
reported_length = tlv_len;
next_tvb = tvb_new_subset_length(tvb, *offset, tlv_len);
next_tvb = tvb_new_subset_length(tvb, *offset, reported_length);
dissect_msdp(next_tvb, pinfo, tree, NULL);
}
*offset += tlv_len;