diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-29 20:17:29 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-29 20:17:29 +0400 |
commit | c4621d35aebaf9c6d466bf7a15a9de340b20b0ce (patch) | |
tree | 75553d38928ccbb2b029bb7646b67ab8b0afac8f /src/lmtp.c | |
parent | eb9facb84cad4017db7ac877b5a0446472756308 (diff) | |
download | rspamd-c4621d35aebaf9c6d466bf7a15a9de340b20b0ce.tar.gz rspamd-c4621d35aebaf9c6d466bf7a15a9de340b20b0ce.zip |
* Add support for extending controller protocol by modules
* Add write support via controller to fuzzy storage
TODO: Add delete and check commands support to controller interface
Diffstat (limited to 'src/lmtp.c')
-rw-r--r-- | src/lmtp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lmtp.c b/src/lmtp.c index d1928cf5c..6554ba4f4 100644 --- a/src/lmtp.c +++ b/src/lmtp.c @@ -85,13 +85,13 @@ rcpt_destruct (void *pointer) * Free all structures of lmtp proto */ static void -free_task (struct rspamd_lmtp_proto *lmtp, gboolean is_soft) +free_lmtp_task (struct rspamd_lmtp_proto *lmtp, gboolean is_soft) { GList *part; struct mime_part *p; if (lmtp) { - msg_debug ("free_task: free pointer %p", lmtp->task); + msg_debug ("free_lmtp_task: free pointer %p", lmtp->task); if (lmtp->task->memc_ctx) { memc_close_ctx (lmtp->task->memc_ctx); } @@ -188,7 +188,7 @@ lmtp_write_socket (void *arg) break; case CLOSING_CONNECTION: msg_debug ("lmtp_write_socket: normally closing connection"); - free_task (lmtp, TRUE); + free_lmtp_task (lmtp, TRUE); break; default: msg_debug ("lmtp_write_socket: invalid state while writing to socket %d", lmtp->task->state); @@ -205,7 +205,7 @@ lmtp_err_socket (GError *err, void *arg) struct rspamd_lmtp_proto *lmtp = (struct rspamd_lmtp_proto *)arg; msg_info ("lmtp_err_socket: abnormally closing connection, error: %s", err->message); /* Free buffers */ - free_task (lmtp, FALSE); + free_lmtp_task (lmtp, FALSE); } /* |