From 84df1adb6418fabd08a3a98481143ef21eeafc51 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 9 Feb 2012 23:10:15 +0000 Subject: [PATCH] Fix an FTPD bug git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4378 7fd9a85b-ad96-42d3-883c-3090e2eb8679 --- apps/netutils/ftpd/ftpd.c | 2 +- nuttx/ChangeLog | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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). +