summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-28 11:05:40 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-28 11:05:40 +0100
commit0cb8e6f11263138e1bcedd07da4385628141f8b6 (patch)
treeb39f447374cb3d7624226d0aba710e5fe37b6853
parent87ce1ea217d2d96e4ad9c9131fb24b4f544759db (diff)
downloadrspamd-0cb8e6f11263138e1bcedd07da4385628141f8b6.tar.gz
rspamd-0cb8e6f11263138e1bcedd07da4385628141f8b6.zip
[CritFix] Fix shmem leak in encrypting proxy mode
-rw-r--r--src/libutil/http.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libutil/http.c b/src/libutil/http.c
index 974a2b592..fea3cadb4 100644
--- a/src/libutil/http.c
+++ b/src/libutil/http.c
@@ -1740,11 +1740,6 @@ rspamd_http_detach_shared (struct rspamd_http_message *msg)
{
rspamd_fstring_t *cpy_str;
- if (msg->body_buf.c.shared.shm_fd != -1) {
- close (msg->body_buf.c.shared.shm_fd);
- msg->body_buf.c.shared.shm_fd = -1;
- }
-
cpy_str = rspamd_fstring_new_init (msg->body_buf.begin, msg->body_buf.len);
rspamd_http_message_set_body_from_fstring_steal (msg, cpy_str);
}