core: increase buffer size in HTTP proxy connection

In case of long address/username/password, the HTTP CONNECT message could be
truncated.
This commit is contained in:
Sébastien Helleu 2020-11-21 21:11:14 +01:00
parent 194f8b5b74
commit 070eb3f7b0

View File

@ -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])