From a723c70feb1968e74ebe654c75db8ece74beb9e9 Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Thu, 24 Aug 2017 14:26:09 -0700 Subject: [PATCH] tap initialization patch --- src/libzt.cpp | 2 +- test/selftest.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libzt.cpp b/src/libzt.cpp index 8be027e..ad09e07 100644 --- a/src/libzt.cpp +++ b/src/libzt.cpp @@ -638,7 +638,7 @@ int zts_bind(ZT_BIND_SIG) { } // detect local interface binds - ZeroTier::VirtualTap *tap; + ZeroTier::VirtualTap *tap = NULL; if(vs->socket_family == AF_INET) { struct sockaddr_in *in4 = (struct sockaddr_in *)addr; diff --git a/test/selftest.cpp b/test/selftest.cpp index e1e7e0b..df27d68 100644 --- a/test/selftest.cpp +++ b/test/selftest.cpp @@ -1546,9 +1546,8 @@ void* create_socket(void *arg) } for(i=0; i<(0xFFFFFFFF);i++); - + */ return NULL; - */ }