This commit is contained in:
zkx5xkt 2025-06-05 10:46:01 +09:00 committed by GitHub
commit 090faef8c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -197,7 +197,7 @@ int clientnegotiate(struct chain * redir, struct clientparam * param, struct soc
return 59;
case 3:
if (sockgetlinebuf(param, SERVER, buf, 1, EOF, conf.timeouts[CHAIN_TO]) != 1) return 59;
len = (unsigned char)buf[0];
len = (unsigned char)buf[0] + 2;
if (sockgetlinebuf(param, SERVER, buf, len, EOF, conf.timeouts[CHAIN_TO]) != len) return 59;
break;
case 4: