aboutsummaryrefslogtreecommitdiffstats
path: root/main/strongswan/0012-daemon-Flush-shunts-before-unloading-plugins.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/strongswan/0012-daemon-Flush-shunts-before-unloading-plugins.patch')
-rw-r--r--main/strongswan/0012-daemon-Flush-shunts-before-unloading-plugins.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/main/strongswan/0012-daemon-Flush-shunts-before-unloading-plugins.patch b/main/strongswan/0012-daemon-Flush-shunts-before-unloading-plugins.patch
new file mode 100644
index 0000000000..9d3be529b7
--- /dev/null
+++ b/main/strongswan/0012-daemon-Flush-shunts-before-unloading-plugins.patch
@@ -0,0 +1,27 @@
+From c04345d5edbbc4c37027cdfc21dba85d03e312af Mon Sep 17 00:00:00 2001
+From: Tobias Brunner <tobias@strongswan.org>
+Date: Tue, 14 Jul 2015 16:56:33 +0200
+Subject: [PATCH] daemon: Flush shunts before unloading plugins
+
+---
+ src/libcharon/daemon.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/libcharon/daemon.c b/src/libcharon/daemon.c
+index b1b8f57..316be76 100644
+--- a/src/libcharon/daemon.c
++++ b/src/libcharon/daemon.c
+@@ -462,6 +462,10 @@ static void destroy(private_daemon_t *this)
+ {
+ this->public.traps->flush(this->public.traps);
+ }
++ if (this->public.shunts)
++ {
++ this->public.shunts->flush(this->public.shunts);
++ }
+ if (this->public.sender)
+ {
+ this->public.sender->flush(this->public.sender);
+--
+2.4.6
+