summaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2010-01-12 18:26:22 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2010-01-12 18:26:22 +0000
commit0c9eb1d3b3f9694c3bc3ad7cf8fdf7553789f93b (patch)
treed3a45f12f276901de60b4470b3aec7b8c4103388 /error.c
parent0777d054cdd146c974e3a0b47601a61969893616 (diff)
downloadopenvpn-0c9eb1d3b3f9694c3bc3ad7cf8fdf7553789f93b.tar.gz
openvpn-0c9eb1d3b3f9694c3bc3ad7cf8fdf7553789f93b.tar.xz
openvpn-0c9eb1d3b3f9694c3bc3ad7cf8fdf7553789f93b.zip
When aborting in a non-graceful way, try to execute do_close_tun in
init.c prior to daemon exit to ensure that the tun/tap interface is closed and any added routes are deleted. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@5367 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'error.c')
-rw-r--r--error.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/error.c b/error.c
index 1d6ed62..603796a 100644
--- a/error.c
+++ b/error.c
@@ -682,10 +682,13 @@ msg_thread_uninit (void)
void
openvpn_exit (const int status)
{
+ void tun_abort();
#ifdef ENABLE_PLUGIN
void plugin_abort (void);
#endif
+ tun_abort();
+
#ifdef WIN32
uninit_win32 ();
#endif