]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: connection: also stop receiving after a SOCKS4 response
authorWilly Tarreau <w@1wt.eu>
Mon, 3 Jun 2019 08:14:18 +0000 (10:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 3 Jun 2019 08:16:35 +0000 (10:16 +0200)
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

index 8b0851ff60c428639b1a1e4eebee48e964aeb40f..361f2ee6e34d9aa9cb938c6660feb88572d2ffa3 100644 (file)
@@ -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: