mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-26 23:59:41 +08:00
socks: a host name with control bytes or spaces is refused where it is read
This commit is contained in:
1 parent
6b9f6cb1e1
commit
9acfe35103
5 files changed
+102
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user