wccp: fix Dead Store found by Clang Analyzer

packet-wccp.c:2423:11: warning: Although the value stored to 'length_remaining' is used in the enclosing expression, the value is never actually read from 'length_remaining'
This commit is contained in:
Alexis La Goutte 2021-02-09 21:33:18 +00:00 committed by Wireshark GitLab Utility
parent 9d91ebd616
commit 7d8d209c9f
1 changed files with 1 additions and 1 deletions

View File

@ -2420,7 +2420,7 @@ dissect_wccp2_info(tvbuff_t *tvb, int offset,
*/
find_wccp_address_table(tvb,offset,pinfo,wccp_tree, &wccp_wccp_address_table);
while ((length_remaining = tvb_reported_length_remaining(tvb, offset)) > 0) {
while (tvb_reported_length_remaining(tvb, offset) > 0) {
type = tvb_get_ntohs(tvb, offset);
switch (type) {