Fix: SOCKSv5 parent reply parsing for domain name address

This commit is contained in:
Vladimir Dubrovin committed 2026-04-12 14:16:48 +03:00
1 parent 2d6eeff5f3
commit f77f65ac4e
3 files changed
+1 -3

No files matched your search

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