From b37eba798e5fb6d30ff10d5c449e3d1051cddcc7 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 1 Apr 2015 16:39:39 +0100 Subject: [PATCH] Memory leak. --- src/libutil/http.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libutil/http.c b/src/libutil/http.c index 802aa9e7f5..1a5bc78408 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -1191,6 +1191,8 @@ rspamd_http_connection_write_message (struct rspamd_http_connection *conn, priv->wr_total -= 2; } if (msg->body != NULL) { + msg->body_buf.str = msg->body->str; + if (encrypted && peer_key != NULL && np != NULL && mp != NULL) { if (conn->cache) { rspamd_cryptobox_encrypt_nm_inplace (pbody, -- 2.47.3