aboutsummaryrefslogtreecommitdiffstats
path: root/src/smtp_proxy.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-06 16:45:47 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-06 16:45:47 +0100
commit66d896e8c819fb25f40fedfbea64f3af7e4a485c (patch)
tree0b2af3a65b3e7eee396bdda33234684542f0f90b /src/smtp_proxy.c
parent748225b8e91105b4da3df8aa00c0b2e116a30df8 (diff)
downloadrspamd-66d896e8c819fb25f40fedfbea64f3af7e4a485c.tar.gz
rspamd-66d896e8c819fb25f40fedfbea64f3af7e4a485c.zip
Fix workers.
Diffstat (limited to 'src/smtp_proxy.c')
-rw-r--r--src/smtp_proxy.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/smtp_proxy.c b/src/smtp_proxy.c
index b931a7890..43119afa2 100644
--- a/src/smtp_proxy.c
+++ b/src/smtp_proxy.c
@@ -734,9 +734,9 @@ smtp_dns_cb (struct rdns_reply *reply, void *arg)
}
static void
-proxy_parse_smtp_input (rspamd_fstring_t *line, struct smtp_proxy_session *session)
+proxy_parse_smtp_input (rspamd_ftok_t *line, struct smtp_proxy_session *session)
{
- gchar *p, *c, *end;
+ const gchar *p, *c, *end;
gsize len;
p = line->begin;
@@ -788,10 +788,10 @@ proxy_parse_smtp_input (rspamd_fstring_t *line, struct smtp_proxy_session *sessi
* Callback that is called when there is data to read in buffer
*/
static gboolean
-smtp_proxy_read_socket (rspamd_fstring_t * in, void *arg)
+smtp_proxy_read_socket (rspamd_ftok_t * in, void *arg)
{
struct smtp_proxy_session *session = arg;
- gchar *p;
+ const gchar *p;
if (session->state != SMTP_PROXY_STATE_REJECT_EMULATE) {
/* This can be called only if client is using invalid pipelining */