aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-04 13:55:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-04 13:55:10 +0100
commitd09485324dead2461703837228f389711e77c002 (patch)
tree1ea79be200d0eadba10a717027a87fab8851f115 /src
parenta36c70a6e354b4c7baf4047ed7db01a3ff76080c (diff)
downloadrspamd-d09485324dead2461703837228f389711e77c002.tar.gz
rspamd-d09485324dead2461703837228f389711e77c002.zip
[Minor] Avoid shared memory usage in file scan mode
Diffstat (limited to 'src')
-rw-r--r--src/rspamd_proxy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c
index 4bdfd56d9..d94ab6455 100644
--- a/src/rspamd_proxy.c
+++ b/src/rspamd_proxy.c
@@ -1438,6 +1438,7 @@ proxy_open_mirror_connections (struct rspamd_proxy_session *session)
}
else {
if (session->fname) {
+ msg->flags &= ~RSPAMD_HTTP_FLAG_SHMEM;
rspamd_http_message_set_body (msg, session->map, session->map_len);
}
@@ -1868,6 +1869,7 @@ retry:
}
else {
if (session->fname) {
+ msg->flags &= ~RSPAMD_HTTP_FLAG_SHMEM;
rspamd_http_message_set_body (msg,
session->map, session->map_len);
}