X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet.c;h=2e84a72462f4ae6f4c2406c5412e7b3f3cbeac60;hp=9c1dd3b89f2541c513990c3370087852fe7dcc96;hb=5d3450357482176ce92ed4832ec944519d197744;hpb=04ec0b82ab9c6a2662300a9257a5aff1c4dd56e7 diff --git a/src/net.c b/src/net.c index 9c1dd3b8..2e84a724 100644 --- a/src/net.c +++ b/src/net.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: net.c,v 1.35.4.115 2001/06/21 16:16:31 guus Exp $ + $Id: net.c,v 1.35.4.117 2001/06/29 10:30:18 guus Exp $ */ #include "config.h" @@ -69,12 +69,9 @@ # include #endif -#warning oi1 #ifdef HAVE_TUNTAP -#warning oi2 #include LINUX_IF_TUN_H #endif -#warning oi3 #include #include @@ -1022,11 +1019,10 @@ cp myself = NULL; } - close(tap_fd); - - /* Execute tinc-down script right after shutting down the interface */ execute_script("tinc-down"); + close(tap_fd); + destroy_connection_tree(); cp return;