aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/smtp_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-30 15:19:04 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-30 15:19:04 +0000
commit39c853952b97d56726839e6e5681cd7e1849c364 (patch)
tree500ec6cf01f380fb22308159c290e0901310d892 /src/libmime/smtp_utils.c
parentef18538d25cc8e39fd0eb71424cecef516412d90 (diff)
downloadrspamd-39c853952b97d56726839e6e5681cd7e1849c364.tar.gz
rspamd-39c853952b97d56726839e6e5681cd7e1849c364.zip
Rework message store to allow encryption.
Diffstat (limited to 'src/libmime/smtp_utils.c')
-rw-r--r--src/libmime/smtp_utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libmime/smtp_utils.c b/src/libmime/smtp_utils.c
index b29a9d717..a5a2f26ef 100644
--- a/src/libmime/smtp_utils.c
+++ b/src/libmime/smtp_utils.c
@@ -35,8 +35,8 @@ free_smtp_session (gpointer arg)
if (session) {
if (session->task) {
rspamd_task_free (session->task, FALSE);
- if (session->task->msg->str) {
- munmap (session->task->msg->str, session->task->msg->len);
+ if (session->task->msg.start) {
+ munmap (session->task->msg.start, session->task->msg.len);
}
}
if (session->rcpt) {
@@ -212,14 +212,14 @@ smtp_metric_callback (gpointer key, gpointer value, gpointer ud)
cd->log_offset += rspamd_snprintf (cd->log_buf + cd->log_offset,
cd->log_size - cd->log_offset,
"]), len: %z, time: %s,",
- task->msg->len,
+ task->msg.len,
calculate_check_time (&task->tv, &task->ts, task->cfg->clock_res,
&task->scan_milliseconds));
#else
cd->log_offset += rspamd_snprintf (cd->log_buf + cd->log_offset,
cd->log_size - cd->log_offset,
"]), len: %z, time: %s,",
- task->msg->len,
+ task->msg.len,
calculate_check_time (&task->tv, task->cfg->clock_res,
&task->scan_milliseconds));
#endif