Skip to content

Commit

Permalink
enable asan
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Mar 31, 2024
1 parent eecef25 commit 811babc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tunnels/client/openssl/openssl_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 811babc

Please sign in to comment.