From 694fcd0ee491d61f4374939dbc68d1d9f222f953 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 3 Jun 2019 10:14:18 +0200 Subject: [PATCH] MINOR: connection: also stop receiving after a SOCKS4 response Just as is done in previous patch for all handshake handlers, also stop receiving after a SOCKS4 response was received. This one escaped the previous cleanup but must be done to keep the code safe. --- src/connection.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/connection.c b/src/connection.c index 8b0851ff60..361f2ee6e3 100644 --- a/src/connection.c +++ b/src/connection.c @@ -1166,6 +1166,7 @@ int conn_recv_socks4_proxy_response(struct connection *conn) } while (0); conn->flags &= ~CO_FL_SOCKS4_RECV; + __conn_sock_stop_recv(conn); return 1; not_ready: -- 2.47.3