From: Anjali Nijhara Date: Mon, 24 Jul 2023 04:13:42 +0000 (+0530) Subject: Fix logical dead issue X-Git-Tag: accepted/tizen/unified/20230727.055138^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_8.0_unified;p=platform%2Fcore%2Fconnectivity%2Fstc-iptables.git Fix logical dead issue CID-1682036 Change-Id: I14f8f2c349860bcc04eacef3c11bb2f14f1c39a1 --- diff --git a/src/helper/helper-ip6tables.c b/src/helper/helper-ip6tables.c index f1c6d54..600e1ab 100755 --- a/src/helper/helper-ip6tables.c +++ b/src/helper/helper-ip6tables.c @@ -702,8 +702,8 @@ int ip6tables_remove_rule_list(GSList *rule_list) if (__create_entry_data(entry, mask, rule) != 0) { STC_LOGE("Failed to create entry"); - } continue; + } if (!ip6tc_delete_entry(chain, (const ip6t_entry_t *)entry, mask, handle)) { STC_LOGE("ip6tc_delete_entry failed [%s]", ip6tc_strerror(errno));