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

filexfer() now creates a log entry (and returns an error to the client) if it

fails to create the file transfer thread for any reason.
parent ccb78c6f
No related branches found
No related tags found
No related merge requests found
...@@ -2018,9 +2018,17 @@ static void filexfer(SOCKADDR_IN* addr, SOCKET ctrl_sock, SOCKET pasv_sock, SOCK ...@@ -2018,9 +2018,17 @@ static void filexfer(SOCKADDR_IN* addr, SOCKET ctrl_sock, SOCKET pasv_sock, SOCK
xfer->desc=desc; xfer->desc=desc;
SAFECOPY(xfer->filename,filename); SAFECOPY(xfer->filename,filename);
if(receiving) if(receiving)
_beginthread(receive_thread,0,(void*)xfer); result=_beginthread(receive_thread,0,(void*)xfer);
else else
_beginthread(send_thread,0,(void*)xfer); result=_beginthread(send_thread,0,(void*)xfer);
if(result==-1) {
lprintf("%04d !ERROR %d creating transfer thread",ctrl_sock,errno);
sockprintf(ctrl_sock,"425 Error %d creating transfer thread",errno);
if(tmpfile)
remove(filename);
*inprogress=FALSE;
}
} }
/* convert "user name" to "user.name" or "mr. user" to "mr._user" */ /* convert "user name" to "user.name" or "mr. user" to "mr._user" */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment