From 135e797e93729ac7c17d43c58de95cb9ba236f48 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 9 Jan 2020 18:23:42 +0000 Subject: [PATCH] [Minor] Fix reseted connections handling --- src/worker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/worker.c b/src/worker.c index 4f13db469..7d9550249 100644 --- a/src/worker.c +++ b/src/worker.c @@ -364,7 +364,7 @@ accept_socket (EV_P_ ev_io *w, int revents) return; } - session = g_malloc (sizeof (*session)); + session = g_malloc0 (sizeof (*session)); session->magic = G_MAXINT64; session->addr = addr; session->fd = nfd; -- 2.39.5