This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit e6196d2c9c5bec9d9a3052048441c188bb64302c Author: Masayuki Ishikawa <[email protected]> AuthorDate: Fri May 22 16:35:11 2020 +0900 netutils: ftpd: Fix EPSV mode in ftpd.c (IPv4 only) Signed-off-by: Masayuki Ishikawa <[email protected]> --- netutils/ftpd/ftpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netutils/ftpd/ftpd.c b/netutils/ftpd/ftpd.c index 3df86c0..0748e5e 100644 --- a/netutils/ftpd/ftpd.c +++ b/netutils/ftpd/ftpd.c @@ -3378,8 +3378,8 @@ static int ftpd_command_epsv(FAR struct ftpd_session_s *session) { ret = ftpd_response(session->cmd.sd, session->txtimeout, "%03u%cEntering Extended Passive Mode " - "(|%u||%u|).\r\n", - 229, ' ', 1, + "(|||%u|).\r\n", + 229, ' ', ntohs(session->data.addr.in4.sin_port)); if (ret < 0) {
