- Fixed incorrect init_connections() call in test_etcp_simple_traffic.c (was calling server_instance instead of client_instance) - Fixed double free in timeout_heap_pop() when handling deleted elements - Enhanced NULL pointer safety in uasync_print_resources() by removing complex heap manipulation - Added debug logging to timeout_heap_pop() for better error tracking Test results: test_etcp_simple_traffic now passes without double free errors
11 lines
427 B
Diff
Executable File
11 lines
427 B
Diff
Executable File
--- etcp_connections.c.backup
|
|
+++ etcp_connections.c
|
|
@@ -409,6 +409,7 @@
|
|
uint8_t enc_buf[1600];
|
|
size_t enc_buf_len;
|
|
dgram->timestamp=get_current_timestamp();
|
|
+ printf("[ETCP DEBUG] About to encrypt: data_len=%d, noencrypt_len=%d, len=%d\\n", dgram->data_len, dgram->noencrypt_len, len);
|
|
|
|
// DUMP: Show packet before encryption
|
|
dump_packet_bytes("BEFORE ENCRYPT", dgram->data, dgram->data_len);
|