diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ec4f47c..21d984ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED TRUE CACHE BOOL "request not to use lower versio # set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address" CACHE STRING "my configurable string" FORCE) # set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address" CACHE STRING "my configurable string" FORCE) -set(ENABLE_ASAN OFF CACHE BOOL "enable address sanitizer" FORCE) +set(ENABLE_ASAN ON CACHE BOOL "enable address sanitizer" FORCE) option(INCLUDE_TCP_LISTENER "link TcpListener staticly to the core" TRUE) option(INCLUDE_LOGGER_TUNNEL "link LoggerTunnel staticly to the core" TRUE) diff --git a/tunnels/client/openssl/openssl_client.c b/tunnels/client/openssl/openssl_client.c index ec7582b4..453ba7ce 100644 --- a/tunnels/client/openssl/openssl_client.c +++ b/tunnels/client/openssl/openssl_client.c @@ -177,7 +177,7 @@ static inline void upStream(tunnel_t *self, context_t *c) self->up->upStream(self->up, c); if (!ISALIVE(clienthello_ctx)) { - destroyContext(c); + destroyContext(clienthello_ctx); return; }