mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
Ticket #1796: FTPFS does not work in active mode
Fixed error with active mode of ftpfs. Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
09f962f5a6
commit
d712d2638e
@ -982,7 +982,7 @@ again:
|
||||
memset (&data_addr, 0, sizeof (struct sockaddr_storage));
|
||||
data_addrlen = sizeof (struct sockaddr_storage);
|
||||
|
||||
if (getpeername (SUP.sock, (struct sockaddr *) &data_addr, &data_addrlen) == -1)
|
||||
if (getsockname (SUP.sock, (struct sockaddr *) &data_addr, &data_addrlen) == -1)
|
||||
return -1;
|
||||
|
||||
switch (data_addr.ss_family) {
|
||||
|
Loading…
Reference in New Issue
Block a user