Fix logical dead issue 18/296218/1 accepted/tizen_8.0_unified tizen_8.0 accepted/tizen/8.0/unified/20231005.093244 accepted/tizen/unified/20230727.055138 tizen_8.0_m2_release
authorAnjali Nijhara <a.nijhara@samsung.com>
Mon, 24 Jul 2023 04:13:42 +0000 (09:43 +0530)
committerAnjali Nijhara <a.nijhara@samsung.com>
Mon, 24 Jul 2023 04:13:42 +0000 (09:43 +0530)
CID-1682036

Change-Id: I14f8f2c349860bcc04eacef3c11bb2f14f1c39a1

src/helper/helper-ip6tables.c

index f1c6d54a0ad913f1970d562cc6a4f0a54ec2f6f4..600e1ab4de284b7d3919e0a96856694715d25f6a 100755 (executable)
@@ -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));