mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
netutils/ftpc: ftpc_connect: Fixed invalid socket close.
This commit is contained in:
parent
192cbd8717
commit
7b074bcf66
1 changed files with 4 additions and 0 deletions
|
|
@ -73,6 +73,10 @@ SESSION ftpc_connect(FAR union ftpc_sockaddr_u *server)
|
|||
session->conntimeo = CONFIG_FTP_DEFTIMEO * CLOCKS_PER_SEC;
|
||||
session->pid = getpid();
|
||||
|
||||
session->cmd.sd = -1;
|
||||
session->data.sd = -1;
|
||||
session->dacceptor.sd = -1;
|
||||
|
||||
/* Use the default port if the user specified port number zero */
|
||||
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue