mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
smtpp: a login name of a port alone names no destination
This commit is contained in:
1 parent
51559e12c4
commit
83269785df
2 files changed
+94
No files matched your search
@@ -563,6 +563,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) return 1;
|
||||
*SAPORT(¶m->req) = htons(port);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user