]> source.dussan.org Git - rspamd.git/commitdiff
[CritFix] Fix shmem leak in encrypting proxy mode
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 28 Jun 2018 10:05:40 +0000 (11:05 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 28 Jun 2018 10:05:40 +0000 (11:05 +0100)
src/libutil/http.c

index 974a2b592579c9cbd7553eb64ff91d702c87e573..fea3cadb430acf690cd7f0cbc9e702541ac6ab32 100644 (file)
@@ -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);
 }