socks: a host name with control bytes or spaces is refused where it is read

This commit is contained in:
Vladimir Dubrovin committed 2026-11-18 20:10:49 +03:00
1 parent 6b9f6cb1e1
commit 9acfe35103
5 files changed
+102

No files matched your search

+1
View File
@@ -271,6 +271,7 @@ int udpsockmap(struct clientparam *param, int timeo)
if (len < 7 + sz) return 485;
memcpy(dstnamebuf, base + 5, sz);
dstnamebuf[sz] = 0;
if (badhostname(dstnamebuf)) continue;
dstname = dstnamebuf;
i = 5 + sz;
if (!getip46m(param->srv->resolvmode, param->srv->family, (unsigned char *)dstnamebuf,