From 77a8ce12ae20be575adaf975d881da56f4b3b6dc Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 4 Jun 2011 13:32:26 +0000 Subject: Fix FTP bug -- losing passive mode indication git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3667 42af7a65-404d-4744-a932-0658087f49c3 --- apps/netutils/ftpc/ftpc_connect.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/netutils/ftpc/ftpc_connect.c') diff --git a/apps/netutils/ftpc/ftpc_connect.c b/apps/netutils/ftpc/ftpc_connect.c index 8affbdade..f36fa08e1 100644 --- a/apps/netutils/ftpc/ftpc_connect.c +++ b/apps/netutils/ftpc/ftpc_connect.c @@ -99,7 +99,8 @@ SESSION ftpc_connect(FAR struct ftpc_connect_s *server) /* Initialize the session structure with all non-zero and variable values */ session->addr.s_addr = server->addr.s_addr; - session->flags = FTPC_FLAGS_INIT; + session->flags &= ~FTPC_FLAGS_CLEAR; + session->flags |= FTPC_FLAGS_SET; session->replytimeo = CONFIG_FTP_DEFTIMEO * CLOCKS_PER_SEC; session->conntimeo = CONFIG_FTP_DEFTIMEO * CLOCKS_PER_SEC; session->pid = getpid(); -- cgit v1.2.3