ret = stc_firewall_rule_remove(rule_h);
if (ret == STC_ERROR_NONE) {
msg(LOG_GREEN "Success to remove firewall rule" LOG_END);
+ g_rule_list = g_slist_remove(g_rule_list, rule_h);
ret = stc_firewall_rule_destroy(rule_h);
if (ret == STC_ERROR_NONE)
msg(LOG_GREEN "Success to destroy firewall rule" LOG_END);
else
msg("Fail to destroy firewall rule " LOG_RED "[%s]" LOG_END,
test_stc_convert_error_type_to_string(ret));
-
- g_rule_list = g_slist_remove(g_rule_list, rule_h);
-
} else
msg("Fail to remove firewall rule " LOG_RED "[%s]" LOG_END,
test_stc_convert_error_type_to_string(ret));
ret = stc_firewall_chain_remove(chain_h);
if (ret == STC_ERROR_NONE) {
msg(LOG_GREEN "Success to remove firewall chain" LOG_END);
+ g_chain_list = g_slist_remove(g_chain_list, chain_h);
ret = stc_firewall_chain_destroy(chain_h);
if (ret == STC_ERROR_NONE)
msg(LOG_GREEN "Success to destroy firewall chain" LOG_END);
else
msg("Fail to destroy firewall chain " LOG_RED "[%s]" LOG_END,
test_stc_convert_error_type_to_string(ret));
-
- g_chain_list = g_slist_remove(g_chain_list, chain_h);
-
} else
msg("Fail to remove firewall chain " LOG_RED "[%s]" LOG_END,
test_stc_convert_error_type_to_string(ret));