starter: Don't flush policies in the kernel
We can't control which policies we flush, so if policies are installed and used outside of strongSwan for other protocols we'd flush them too. And if installpolicies=no is used we probably shouldn't flush policies either. Luckily already existing policies are not treated as fatal errors anymore, so not flushing policies should not be that much of an issue (in case of a crash in dynamic setups, e.g. with virtual IPs, policies could be left behind even after restarting the connections and properly terminating the daemon).
This commit is contained in:
@@ -65,6 +65,5 @@ void starter_netkey_cleanup(void)
|
||||
return;
|
||||
}
|
||||
hydra->kernel_interface->flush_sas(hydra->kernel_interface);
|
||||
hydra->kernel_interface->flush_policies(hydra->kernel_interface);
|
||||
lib->plugins->unload(lib->plugins);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user