From: Vsevolod Stakhov Date: Thu, 28 Jun 2018 10:05:40 +0000 (+0100) Subject: [CritFix] Fix shmem leak in encrypting proxy mode X-Git-Tag: 1.7.7~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cb8e6f11263138e1bcedd07da4385628141f8b6;p=thirdparty%2Frspamd.git [CritFix] Fix shmem leak in encrypting proxy mode --- diff --git a/src/libutil/http.c b/src/libutil/http.c index 974a2b5925..fea3cadb43 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); }