]> source.dussan.org Git - rspamd.git/commitdiff
Fix encrypted output.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 2 Feb 2015 14:25:03 +0000 (14:25 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 2 Feb 2015 14:25:03 +0000 (14:25 +0000)
src/libutil/http.c

index 47de412233ea06adf5894ff0063f3d4fed40d0af..9b8e2a98c7ac2ca9df831674ff55926cc4708db4 100644 (file)
@@ -1019,6 +1019,12 @@ rspamd_http_connection_write_message (struct rspamd_http_connection *conn,
        priv->buf->data = g_string_sized_new (128);
        buf = priv->buf->data;
 
+       if (priv->peer_key) {
+               priv->msg->peer_key = priv->peer_key;
+               priv->peer_key = NULL;
+               priv->encrypted = TRUE;
+       }
+
        if (msg->method < HTTP_SYMBOLS) {
                if (msg->body == NULL || msg->body->len == 0) {
                        pbody = NULL;