From ce9fd32c04adf83cbaf668ee42a29575ba256002 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 8 Oct 2001 11:59:08 +0000 Subject: [PATCH] Fix bug where tinc would crash because of a portscan or a connection from a tinc daemon with a different version. --- src/net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net.c b/src/net.c index fbefa8c..91eb513 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.134 2001/10/08 11:47:55 guus Exp $ + $Id: net.c,v 1.35.4.135 2001/10/08 11:59:08 guus Exp $ */ #include "config.h" @@ -1367,7 +1367,7 @@ cp if(FD_ISSET(p->meta_socket, f)) if(receive_meta(p) < 0) { - terminate_connection(p, p->status.meta); + terminate_connection(p, p->status.active); return; } } -- 2.25.1