]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
socks: reduce the buffer size to 600 (from 8K)
authorDaniel Stenberg <daniel@haxx.se>
Fri, 26 Jan 2024 07:54:08 +0000 (08:54 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 26 Jan 2024 15:40:03 +0000 (16:40 +0100)
This is malloc'ed memory and it does not more. Test 742 helps us verify
this.

Closes #12789

lib/socks.c

index e9270735bf8a2eedf7716e0767bbb81851f487aa..ecd2f7eab53ce501a0903a39adf65f2abed31b2d 100644 (file)
@@ -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