From 0c9eb1d3b3f9694c3bc3ad7cf8fdf7553789f93b Mon Sep 17 00:00:00 2001 From: james Date: Tue, 12 Jan 2010 18:26:22 +0000 Subject: 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 --- error.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'error.c') 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 -- cgit