aboutsummaryrefslogtreecommitdiffstats
path: root/src/worker.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-21 15:29:05 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-21 15:29:05 +0100
commit53e8a8b05b7f0696ce72ccfd347a35bb80f19570 (patch)
tree4f8159b9de816f4e4f6788d23e0211dd08fdb478 /src/worker.c
parentb8f84a8d97210e9a2df04ad4687624a30d62a1a4 (diff)
downloadrspamd-53e8a8b05b7f0696ce72ccfd347a35bb80f19570.tar.gz
rspamd-53e8a8b05b7f0696ce72ccfd347a35bb80f19570.zip
Finish conversion to new inet addr structure.
Diffstat (limited to 'src/worker.c')
-rw-r--r--src/worker.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/worker.c b/src/worker.c
index 978ff72ec..8efb5a19e 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -254,7 +254,7 @@ rspamd_worker_error_handler (struct rspamd_http_connection *conn, GError *err)
struct rspamd_task *task = (struct rspamd_task *) conn->ud;
msg_info ("abnormally closing connection from: %s, error: %s",
- inet_ntoa (task->client_addr), err->message);
+ rspamd_inet_address_to_string (&task->client_addr), err->message);
if (task->state != CLOSING_CONNECTION) {
/* We still need to write a reply */
task->error_code = err->code;
@@ -275,7 +275,8 @@ rspamd_worker_finish_handler (struct rspamd_http_connection *conn,
struct rspamd_task *task = (struct rspamd_task *) conn->ud;
if (task->state == CLOSING_CONNECTION) {
- msg_debug ("normally closing connection from: %s", inet_ntoa (task->client_addr));
+ msg_debug ("normally closing connection from: %s",
+ rspamd_inet_address_to_string (&task->client_addr));
destroy_session (task->s);
}
else {