Commit 5874b453 authored by Jussi Laakkonen's avatar Jussi Laakkonen

[connman] Keep static general rules if notifier fails. JB#44205

Keep the general rules if the notifier fails. Notifier failing only
prevents use of dynamic rules, which need to be removed. The general
rules are removed at cleanup.
parent 9efdd66d
......@@ -2762,8 +2762,6 @@ static void cleanup_dynamic_firewall_rules()
tethering_firewall = NULL;
}
cleanup_general_firewall();
g_free(dynamic_rules);
dynamic_rules = NULL;
}
......@@ -3271,6 +3269,7 @@ void __connman_firewall_cleanup(void)
firewall_access_policy = NULL;
cleanup_dynamic_firewall_rules();
cleanup_general_firewall();
g_list_free_full(configuration_files, g_free);
configuration_files = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment