From 9f33f89a7ea4cb4084257e009de99e27c620859c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 18 Nov 2016 13:38:28 +0000 Subject: [PATCH] [CritFix] Another fix for proxying files using rspamd_proxy --- src/rspamd_proxy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c index 80be4d9d5..917c925ab 100644 --- a/src/rspamd_proxy.c +++ b/src/rspamd_proxy.c @@ -703,10 +703,9 @@ proxy_backend_close_connection (struct rspamd_proxy_backend_connection *conn) if (conn->backend_conn) { rspamd_http_connection_reset (conn->backend_conn); rspamd_http_connection_unref (conn->backend_conn); + close (conn->backend_sock); } - close (conn->backend_sock); - conn->flags |= RSPAMD_BACKEND_CLOSED; } } -- 2.39.5