From: Tobias Brunner Date: Tue, 14 Jul 2015 14:56:33 +0000 (+0200) Subject: daemon: Flush shunts before unloading plugins X-Git-Tag: 5.3.3dr2~9^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c04345d5edbbc4c37027cdfc21dba85d03e312af;p=thirdparty%2Fstrongswan.git daemon: Flush shunts before unloading plugins --- diff --git a/src/libcharon/daemon.c b/src/libcharon/daemon.c index b1b8f57f0a..316be76117 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);