From: Vsevolod Stakhov Date: Fri, 30 Jan 2015 18:01:41 +0000 (+0000) Subject: Fix length in the message. X-Git-Tag: 0.9.0~796 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9e100a46585ab725e36660afdf21bd1e66400436;p=rspamd.git Fix length in the message. --- diff --git a/src/libutil/http.c b/src/libutil/http.c index 847f7f787..0500f18ef 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -1161,7 +1161,7 @@ rspamd_http_connection_write_message (struct rspamd_http_connection *conn, priv->out[i].iov_base = mp; priv->out[i++].iov_len = sizeof (mac); priv->out[i].iov_base = pbody; - priv->out[i++].iov_len = bodylen; + priv->out[i++].iov_len = bodylen - sizeof (nonce) - sizeof (mac); } else { priv->out[i].iov_base = pbody;