]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix reseted connections handling
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 9 Jan 2020 18:23:42 +0000 (18:23 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 9 Jan 2020 18:23:42 +0000 (18:23 +0000)
src/worker.c

index 4f13db46934a6fd1ffe0f2f438747382b84c31be..7d955024900d0915e3c73d341f0836510fd10b37 100644 (file)
@@ -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;