From: Willy Tarreau Date: Mon, 3 Jun 2019 08:14:18 +0000 (+0200) Subject: MINOR: connection: also stop receiving after a SOCKS4 response X-Git-Tag: v2.0-dev6~72 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=694fcd0ee491d61f4374939dbc68d1d9f222f953;p=thirdparty%2Fhaproxy.git 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. --- 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: