From: Daniel Stenberg Date: Fri, 26 Jan 2024 07:54:08 +0000 (+0100) Subject: socks: reduce the buffer size to 600 (from 8K) X-Git-Tag: curl-8_6_0~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a3a940702a7fca4719ec33730314c7dda0208486;p=thirdparty%2Fcurl.git 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 --- 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