From: Guus Sliepen Date: Mon, 8 Oct 2001 11:59:08 +0000 (+0000) Subject: Fix bug where tinc would crash because of a portscan or a connection from a X-Git-Tag: release-1.0pre5~65 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ce9fd32c04adf83cbaf668ee42a29575ba256002;p=oweals%2Ftinc.git Fix bug where tinc would crash because of a portscan or a connection from a tinc daemon with a different version. --- 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; } }