aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-01-09 18:23:42 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-01-09 18:23:42 +0000
commit135e797e93729ac7c17d43c58de95cb9ba236f48 (patch)
tree7f63f1f5d337391f74c16f8aee062c2af32f1adc /src
parentbdad476ce3f9b889c3d498bf66755882caf5e067 (diff)
downloadrspamd-135e797e93729ac7c17d43c58de95cb9ba236f48.tar.gz
rspamd-135e797e93729ac7c17d43c58de95cb9ba236f48.zip
[Minor] Fix reseted connections handling
Diffstat (limited to 'src')
-rw-r--r--src/worker.c2
1 files changed, 1 insertions, 1 deletions
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;