Skip to content
Snippets Groups Projects
Commit 8dddfd92 authored by rswindell's avatar rswindell
Browse files

Fix incorrect error log entry reported by "Mindless Automation": when using an

FTP passive port range, and all ports would fail to bind, the logged error
would report failure for the last port+1 I(rather thant the last port).
parent 4fe2db36
No related branches found
No related tags found
No related merge requests found
......@@ -2845,6 +2845,8 @@ static void ctrl_thread(void* arg)
if((result=bind(pasv_sock, (struct sockaddr *) &pasv_addr,sizeof(pasv_addr)))==0)
break;
if(port==startup->pasv_port_high)
break;
}
if(result!= 0) {
lprintf(LOG_ERR,"%04d !PASV ERROR %d (%d) binding socket to port %u"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment