projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Always close all sockets in terminate_connection().
[tinc]
/
src
/
net.c
diff --git
a/src/net.c
b/src/net.c
index
f0e80b7
..
9bdc4b3
100644
(file)
--- 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.
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.12
4 2001/07/21 15:34:18
guus Exp $
+ $Id: net.c,v 1.35.4.12
5 2001/07/21 15:46:34
guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-1151,6
+1151,8
@@
cp
if(cl->socket)
close(cl->socket);
if(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)"),
cl->name, cl->hostname);
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
if(cl->status.active)
{
/* Find all connections that were lost because they were behind cl