summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-11-21 21:11:14 +0100
committerSébastien Helleu <flashcode@flashtux.org>2020-11-21 21:13:13 +0100
commit070eb3f7b00f7d6ad14cd6f1542b2d6bae1ddb42 (patch)
treeddb806f0c1d9afde7c162b219cde91eefc8d5c90 /src/core
parent194f8b5b74bc4b40a03781cdc71ce10d7a8cda66 (diff)
downloadweechat-070eb3f7b00f7d6ad14cd6f1542b2d6bae1ddb42.zip
core: increase buffer size in HTTP proxy connection
In case of long address/username/password, the HTTP CONNECT message could be truncated.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/wee-network.c b/src/core/wee-network.c
index a9f0e1df3..16a7668a4 100644
--- a/src/core/wee-network.c
+++ b/src/core/wee-network.c
@@ -236,7 +236,7 @@ int
network_pass_httpproxy (struct t_proxy *proxy, int sock, const char *address,
int port)
{
- char buffer[256], authbuf[128], authbuf_base64[512], *username, *password;
+ char buffer[4096], authbuf[128], authbuf_base64[512], *username, *password;
int length;
if (CONFIG_STRING(proxy->options[PROXY_OPTION_USERNAME])