aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2024-01-26 08:54:08 +0100
committerDaniel Stenberg <daniel@haxx.se>2024-01-26 16:40:03 +0100
commita3a940702a7fca4719ec33730314c7dda0208486 (patch)
tree356f3419f867fdacb3377b57adef04389682f593
parenta6c9a33bf80fd639af6c092ab9a17c1ff1981495 (diff)
downloadcurl-a3a940702a7fca4719ec33730314c7dda0208486.tar.gz
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
-rw-r--r--lib/socks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/socks.c b/lib/socks.c
index e9270735b..ecd2f7eab 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