Fix: invalid hostname ACL handling in UDPASSOC

This commit is contained in:
Vladimir Dubrovin 2026-10-01 16:57:36 +03:00
parent 7e0ee5bace
commit 3feb6df00d

View File

@ -289,6 +289,12 @@ int udpsockmap(struct clientparam *param, int timeo)
}
default: return 997;
}
/* As for TCP requests, a literal address is the host name,
otherwise an ACL with host names only matches any address */
if (!dstname) {
myinet_ntop(*SAFAMILY(&dst), SAADDR(&dst), dstnamebuf, sizeof(dstnamebuf));
dstname = dstnamebuf;
}
memcpy(SAPORT(&dst), base + i, 2);
i += 2;