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

Change-Id: I5364e3deed22f98b77e2a6390e4cce6de3a9c7bd
Reviewed-on: https://code.wireshark.org/review/24918
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Alexis La Goutte 2017-12-20 20:32:09 +00:00 committed by Michael Mann
parent 4d0e0da64f
commit 7ca62cc815
1 changed files with 1 additions and 6 deletions

View File

@ -578,12 +578,7 @@ static int get_ipv6_suffix(char* ipv6_suffix, char *ipv6_address)
gboolean found = FALSE;
ipv6_len = (int) strlen(ipv6_address);
if(ipv6_len == 0)
{
/* Found a suffix */
found = TRUE;
}
else
if(ipv6_len != 0)
{
while ( (cpt_suffix < IPSEC_STRLEN_IPV6) && (ipv6_len - cpt -1 >= 0) && (found == FALSE))
{