Always close all sockets in terminate_connection().
This commit is contained in:
parent
acb853205d
commit
533ee1206f
1 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
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"
|
#include "config.h"
|
||||||
|
@ -1151,6 +1151,8 @@ cp
|
||||||
|
|
||||||
if(cl->socket)
|
if(cl->socket)
|
||||||
close(cl->socket);
|
close(cl->socket);
|
||||||
|
if(cl->meta_socket)
|
||||||
|
close(cl->meta_socket);
|
||||||
|
|
||||||
connection_del(cl);
|
connection_del(cl);
|
||||||
|
|
||||||
|
@ -1160,8 +1162,6 @@ cp
|
||||||
syslog(LOG_NOTICE, _("Closing connection with %s (%s)"),
|
syslog(LOG_NOTICE, _("Closing connection with %s (%s)"),
|
||||||
cl->name, cl->hostname);
|
cl->name, cl->hostname);
|
||||||
|
|
||||||
close(cl->meta_socket);
|
|
||||||
|
|
||||||
if(cl->status.active)
|
if(cl->status.active)
|
||||||
{
|
{
|
||||||
/* Find all connections that were lost because they were behind cl
|
/* Find all connections that were lost because they were behind cl
|
||||||
|
|
Loading…
Reference in a new issue