X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet.c;h=9bdc4b3a9a42804f016581570b7423de2d7cffe9;hp=f0e80b795361b3020f21ee0a3117c1ffc139cc20;hb=533ee1206fb6433a1f0e616db999b3655addfaf2;hpb=acb853205d6d582d919c59879393b301ad4f4fde 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