]> git.meshlink.io Git - meshlink/commitdiff
Fix bug where tinc would crash because of a portscan or a connection from a
authorGuus Sliepen <guus@tinc-vpn.org>
Mon, 8 Oct 2001 11:59:08 +0000 (11:59 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Mon, 8 Oct 2001 11:59:08 +0000 (11:59 +0000)
tinc daemon with a different version.

src/net.c

index fbefa8ca0146d5c09c327ef63a4d794904cc070a..91eb513e58b4f5ad62084078ad01c2176fcc755a 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.
 
-    $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;
          }
     }