]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix internal utils
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 27 Jun 2017 07:44:49 +0000 (08:44 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 27 Jun 2017 07:44:49 +0000 (08:44 +0100)
utils/mime_tool.c
utils/rspamd_http_server.c

index 34035ab61a77239947b941566a9f4b38899ed7fc..7e0e664e87fb916ba8b96e23165c293fabeec6d6 100644 (file)
@@ -153,7 +153,7 @@ rspamd_process_file (struct rspamd_config *cfg, const gchar *fname, gint mode)
                exit (EXIT_FAILURE);
        }
 
-       task = rspamd_task_new (NULL, cfg);
+       task = rspamd_task_new (NULL, cfg, NULL);
        task->msg.begin = map;
        task->msg.len = st.st_size;
 
index 69ef852e67e09f3f804985de495e21b1ceed3eae..722a52103b429eb12f19322260715c56e7444aea 100644 (file)
@@ -148,7 +148,7 @@ rspamd_server_accept (gint fd, short what, void *arg)
                        return;
                }
 
-               rspamd_inet_address_destroy (addr);
+               rspamd_inet_address_free (addr);
                session = g_slice_alloc (sizeof (*session));
                session->conn = rspamd_http_connection_new (NULL,
                                rspamd_server_error,