aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-12 14:22:04 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-12 14:22:04 +0000
commitc14def4a6775f49191175e5b5a4e9c8c93b797e1 (patch)
treefcc9fdda58fbfbe0f98bcb951e1de61a8495a940 /src
parentc451d5d7d3cb2247c6bec32a7f639e72ddd469c1 (diff)
downloadrspamd-c14def4a6775f49191175e5b5a4e9c8c93b797e1.tar.gz
rspamd-c14def4a6775f49191175e5b5a4e9c8c93b797e1.zip
Rework task structure for new inet_addr.
Diffstat (limited to 'src')
-rw-r--r--src/libserver/task.c6
-rw-r--r--src/libserver/task.h4
2 files changed, 8 insertions, 2 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c
index e926897be..f6eeef2b1 100644
--- a/src/libserver/task.c
+++ b/src/libserver/task.c
@@ -274,6 +274,12 @@ rspamd_task_free (struct rspamd_task *task, gboolean is_soft)
if (task->peer_key != NULL) {
rspamd_http_connection_key_unref (task->peer_key);
}
+ if (task->client_addr) {
+ rspamd_inet_address_destroy (task->client_addr);
+ }
+ if (task->from_addr) {
+ rspamd_inet_address_destroy (task->from_addr);
+ }
rspamd_mempool_delete (task->task_pool);
g_slice_free1 (sizeof (struct rspamd_task), task);
}
diff --git a/src/libserver/task.h b/src/libserver/task.h
index b989d3541..799182f01 100644
--- a/src/libserver/task.h
+++ b/src/libserver/task.h
@@ -94,8 +94,8 @@ struct rspamd_task {
gchar *queue_id; /**< queue id if specified */
const gchar *message_id; /**< message id */
- rspamd_inet_addr_t from_addr; /**< from addr for a task */
- rspamd_inet_addr_t client_addr; /**< address of connected socket */
+ rspamd_inet_addr_t *from_addr; /**< from addr for a task */
+ rspamd_inet_addr_t *client_addr; /**< address of connected socket */
gchar *deliver_to; /**< address to deliver */
gchar *user; /**< user to deliver */
gchar *subject; /**< subject (for non-mime) */