ftppr and -h option handling fixed

This commit is contained in:
z3APA3A committed 2014-12-10 19:00:35 +03:00
1 parent f82d1e296b
commit e3645ee971
3 files changed
+6 -5

No files matched your search

+1
View File
@@ -276,6 +276,7 @@ int parseconnusername(char *username, struct clientparam *param, int extpasswd,
if(!username || !*username) return 1;
if ((sb=strchr(username, conf.delimchar)) == NULL){
if(!param->hostname && param->remsock == INVALID_SOCKET) return 2;
if(param->hostname)parsehostname(param->hostname, param, port);
return parseusername(username, param, extpasswd);
}
while ((se=strchr(sb+1, conf.delimchar)))sb=se;