fail portmapping if name can not be resolved

This commit is contained in:
z3APA3A committed 2020-10-16 23:13:07 +03:00
1 parent 624c3e6ae1
commit 01ec2f12d5
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ void * udppmchild(struct clientparam* param) {
struct pollfd fds[256];
if(!param->hostname)parsehostname((char *)param->srv->target, param, ntohs(param->srv->targetport));
if(!param->hostname && parsehostname((char *)param->srv->target, param, ntohs(param->srv->targetport))) RETURN(100);
if (SAISNULL(&param->req)) {
param->srv->fds.events = POLLIN;
RETURN (100);