Fix missing device binding for few cases

This commit is contained in:
Vladimir Dubrovin committed 2026-10-10 17:39:41 +03:00
1 parent 36ae10ad16
commit 5e71f7daff
6 files changed
+66 -39

No files matched your search

+1
View File
@@ -129,6 +129,7 @@ void * ftpprchild(struct clientparam* param) {
clidatasock = INVALID_SOCKET;
}
if ((clidatasock=socket(SASOCK(&param->sincl), SOCK_STREAM, IPPROTO_TCP)) == INVALID_SOCKET) {RETURN(821);}
if(intbindtodevice(param, clidatasock)){RETURN(822);}
*SAPORT(&param->sincl) = 0;
if(bindwithrange(param, clidatasock, &param->sincl, param->intport)){RETURN(822);}
if (pasv) {