]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Set sane defaults when handle router socket
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 12 Aug 2017 21:42:19 +0000 (22:42 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 12 Aug 2017 21:42:19 +0000 (22:42 +0100)
src/libutil/http.c

index 7ff981e4e3e8cee6934dc092ac40897bac46a15d..5ad9a6d144750f24611ec94aaebc528d5395985a 100644 (file)
@@ -3459,7 +3459,7 @@ rspamd_http_router_handle_socket (struct rspamd_http_connection_router *router,
 {
        struct rspamd_http_connection_entry *conn;
 
-       conn = g_slice_alloc (sizeof (struct rspamd_http_connection_entry));
+       conn = g_slice_alloc0 (sizeof (struct rspamd_http_connection_entry));
        conn->rt = router;
        conn->ud = ud;
        conn->is_reply = FALSE;