Fix an FTPD bug

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4378 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo 2012-02-09 23:10:15 +00:00
parent 4f5b04c8e5
commit 84df1adb64
2 changed files with 3 additions and 2 deletions

View File

@ -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 */

View File

@ -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).
David Sidrane).