From: Guus Sliepen Date: Sat, 21 Jul 2001 15:46:34 +0000 (+0000) Subject: Always close all sockets in terminate_connection(). X-Git-Tag: release-1.0pre5~91 X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=533ee1206fb6433a1f0e616db999b3655addfaf2 Always close all sockets in terminate_connection(). --- diff --git a/src/net.c b/src/net.c index f0e80b79..9bdc4b3a 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.124 2001/07/21 15:34:18 guus Exp $ + $Id: net.c,v 1.35.4.125 2001/07/21 15:46:34 guus Exp $ */ #include "config.h" @@ -1151,6 +1151,8 @@ cp if(cl->socket) close(cl->socket); + if(cl->meta_socket) + close(cl->meta_socket); connection_del(cl); @@ -1160,8 +1162,6 @@ cp syslog(LOG_NOTICE, _("Closing connection with %s (%s)"), cl->name, cl->hostname); - close(cl->meta_socket); - if(cl->status.active) { /* Find all connections that were lost because they were behind cl