diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-18 13:38:28 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-18 13:38:28 +0000 |
commit | 2c165660906d2c4164fc6faa3a24bca2226c27be (patch) | |
tree | a9e4cb45f1fbb39d30d1927db02fc38628292335 /src/rspamd_proxy.c | |
parent | 832fe2cc744c4058bcb7a18c1f7565b028c1f859 (diff) | |
download | rspamd-2c165660906d2c4164fc6faa3a24bca2226c27be.tar.gz rspamd-2c165660906d2c4164fc6faa3a24bca2226c27be.zip |
[CritFix] Another fix for proxying files using rspamd_proxy
Diffstat (limited to 'src/rspamd_proxy.c')
-rw-r--r-- | src/rspamd_proxy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c index 6ef5cc6d0..fc30329a8 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; } } |