diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-06-27 08:44:49 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-06-27 08:44:49 +0100 |
commit | 2362e3ae3a8236a868c66ce1ac7f8e5c39ae7b77 (patch) | |
tree | 105228a1e4bcc599dbad50d397fa7bf0a321275d /utils | |
parent | 09f116bb2596ad0593fe2ad24c1c2f6297d638ad (diff) | |
download | rspamd-2362e3ae3a8236a868c66ce1ac7f8e5c39ae7b77.tar.gz rspamd-2362e3ae3a8236a868c66ce1ac7f8e5c39ae7b77.zip |
[Minor] Fix internal utils
Diffstat (limited to 'utils')
-rw-r--r-- | utils/mime_tool.c | 2 | ||||
-rw-r--r-- | utils/rspamd_http_server.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/utils/mime_tool.c b/utils/mime_tool.c index 34035ab61..7e0e664e8 100644 --- a/utils/mime_tool.c +++ b/utils/mime_tool.c @@ -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; diff --git a/utils/rspamd_http_server.c b/utils/rspamd_http_server.c index 69ef852e6..722a52103 100644 --- a/utils/rspamd_http_server.c +++ b/utils/rspamd_http_server.c @@ -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, |