fix: diag_timer_cb UAF — обнуляем rc->diag_timer до раннего возврата

This commit is contained in:
Evgeny committed 2026-06-09 21:50:04 +03:00
1 parent 1f34629753
commit a0ea19acb8
1 file changed
+1
+1
View File
@@ -156,6 +156,7 @@ static void on_error_cb(struct tcp_conn* tc, int err, void* arg) {
static void diag_timer_cb(void* arg) {
struct tcp_proxy_server_conn* rc = (struct tcp_proxy_server_conn*)arg;
rc->diag_timer = NULL;
struct tcp_conn* tc = rc->tc;
if (!tc || tc->sock == SOCKET_INVALID) return;