diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-09 13:05:24 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-09 13:05:24 +0000 |
commit | 4350175fb19b67c432a2847ac6ee80a2d0d66ff1 (patch) | |
tree | 227162da757f7f3016dd5717ff44f44365147792 /src | |
parent | a344b90aac8762636ef815a71d0536c4f7a6d646 (diff) | |
download | rspamd-4350175fb19b67c432a2847ac6ee80a2d0d66ff1.tar.gz rspamd-4350175fb19b67c432a2847ac6ee80a2d0d66ff1.zip |
Set file flag when loading files
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/task.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c index 1fcb0df36..584094e6e 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -330,6 +330,7 @@ rspamd_task_load_message (struct rspamd_task *task, close (fd); task->msg.begin = map; task->msg.len = st.st_size; + task->flags |= RSPAMD_TASK_FLAG_FILE; rspamd_mempool_add_destructor (task->task_pool, rspamd_task_unmapper, task); } |