+memory check module
fix double free @routing
This commit is contained in:
1 parent
15c7968c8c
commit
066a9aa89e
13 files changed
+218
-229
No files matched your search
+2
-2
@@ -27,7 +27,7 @@ check_PROGRAMS = \
|
||||
bench_uasync_timeouts
|
||||
|
||||
# Basic includes
|
||||
AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/lib -I$(top_srcdir)/tinycrypt/lib/include -I$(top_srcdir)/tinycrypt/lib/source
|
||||
AM_CFLAGS = -g -I$(top_srcdir)/src -I$(top_srcdir)/lib -I$(top_srcdir)/tinycrypt/lib/include -I$(top_srcdir)/tinycrypt/lib/source
|
||||
|
||||
# TinyCrypt source files
|
||||
TINYCRYPT_SRCDIR = $(top_srcdir)/tinycrypt/lib/source
|
||||
@@ -81,7 +81,7 @@ ETCP_FULL_OBJS = \
|
||||
|
||||
# Windows-specific libraries (advapi32 for CryptGenRandom, ws2_32 for sockets)
|
||||
if OS_WINDOWS
|
||||
WIN_LIBS = -lws2_32 -liphlpapi -ladvapi32 -lbcrypt
|
||||
WIN_LIBS = -lws2_32 -liphlpapi -ladvapi32 -lbcrypt -ldbghelp
|
||||
else
|
||||
WIN_LIBS =
|
||||
endif
|
||||
|
||||
@@ -263,12 +263,16 @@ int main() {
|
||||
// Create server instance
|
||||
DEBUG_INFO(DEBUG_CATEGORY_ETCP, "Creating server instance...");
|
||||
ua = uasync_create();
|
||||
DEBUG_INFO(DEBUG_CATEGORY_ETCP, "Creating server instance ok...");
|
||||
|
||||
server_instance = utun_instance_create(ua, server_config_path);
|
||||
if (!server_instance) {
|
||||
DEBUG_ERROR(DEBUG_CATEGORY_ETCP, "Failed to create server instance");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
DEBUG_INFO(DEBUG_CATEGORY_ETCP, "UTUN instance ok...");
|
||||
|
||||
// Initialize ETCP connections regardless of TUN state
|
||||
if (init_connections(server_instance) < 0) {
|
||||
DEBUG_ERROR(DEBUG_CATEGORY_ETCP, "Failed to initialize server connections");
|
||||
@@ -321,7 +325,7 @@ int main() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Start monitoring
|
||||
DEBUG_INFO(DEBUG_CATEGORY_ETCP, "Starting connection monitoring...\n");
|
||||
monitor_timeout_id = uasync_set_timeout(ua, 100, NULL, monitor_connections);
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "u_async.h"
|
||||
#include "timeout_heap.h"
|
||||
#include "debug_config.h"
|
||||
#include "../lib/mem.h"
|
||||
|
||||
/* Test statistics */
|
||||
static struct {
|
||||
|
||||
Reference in new issue
Block a user