diff --git a/apps/netutils/ftpd/ftpd.c b/apps/netutils/ftpd/ftpd.c index af11b3960c..ff27d794a0 100755 --- a/apps/netutils/ftpd/ftpd.c +++ b/apps/netutils/ftpd/ftpd.c @@ -3063,7 +3063,7 @@ static int ftpd_command_pasv(FAR struct ftpd_session_s *session) else #endif #ifndef CONFIG_NET_IPv6 - if (session->data.addr.ss.ss_family != AF_INET) + if (session->data.addr.ss.ss_family == AF_INET) { /* Fixed to ipv4 */ diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog index 444119973d..a5856e50f9 100644 --- a/nuttx/ChangeLog +++ b/nuttx/ChangeLog @@ -2449,4 +2449,5 @@ * include/pthread.h: Correct PTHREAD_MUTEX_INITIALIZER. * fs/fat/fs_fatfs.c: Fix and error in the FAT statfs() implementation that was causing some block counts to be reported incorrectly (reported by - david_s5y). \ No newline at end of file + David Sidrane). +