mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 15:59:41 +08:00
smtpp: a login name of a port alone names no destination
This commit is contained in:
1 parent
d82b780dda
commit
f105a27e68
2 files changed
+7
No files matched your search
@@ -587,6 +587,9 @@ int parsehostname(char *hostname, struct clientparam *param, uint16_t port){
|
||||
port = atoi(sp+1);
|
||||
*sp = ':';
|
||||
}
|
||||
/* A port alone overrides the port of a host already set; without
|
||||
one it names no destination to connect to. */
|
||||
if(!param->hostname || !*param->hostname) return 1;
|
||||
*SAPORT(¶m->req) = htons(port);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -195,6 +195,10 @@ void * smtppchild(struct clientparam* param) {
|
||||
}
|
||||
}
|
||||
|
||||
/* A login has to end with a host to connect to: what follows reads the
|
||||
host name, and without one there is nowhere to go. */
|
||||
if(!param->hostname || !param->extusername){RETURN(669);}
|
||||
|
||||
#ifndef WITHMAIN
|
||||
{
|
||||
int action, reqbufsize, reqsize;
|
||||
|
||||
Reference in new issue
Block a user