Fix an FTPD bug

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4378 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2012-02-09 23:10:15 +00:00
parent f12225b4f7
commit 96abf2590b

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