From 533ee1206fb6433a1f0e616db999b3655addfaf2 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 21 Jul 2001 15:46:34 +0000 Subject: [PATCH] Always close all sockets in terminate_connection(). --- src/net.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.20.1