commit 135e797: [Minor] Fix reseted connections handling

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Jan 9 18:28:06 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-01-09 18:23:42 +0000
URL: https://github.com/rspamd/rspamd/commit/135e797e93729ac7c17d43c58de95cb9ba236f48 (HEAD -> master)

[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;


More information about the Commits mailing list