From a3a940702a7fca4719ec33730314c7dda0208486 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 26 Jan 2024 08:54:08 +0100 Subject: [PATCH] socks: reduce the buffer size to 600 (from 8K) This is malloc'ed memory and it does not more. Test 742 helps us verify this. Closes #12789 --- lib/socks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/socks.c b/lib/socks.c index e9270735bf..ecd2f7eab5 100644 --- a/lib/socks.c +++ b/lib/socks.c @@ -71,7 +71,7 @@ enum connect_t { CONNECT_DONE /* 17 connected fine to the remote or the SOCKS proxy */ }; -#define CURL_SOCKS_BUF_SIZE (8*1024) +#define CURL_SOCKS_BUF_SIZE 600 /* make sure we configure it not too low */ #if CURL_SOCKS_BUF_SIZE < 600 -- 2.47.3