From d8f7f66b5e2fecad17f78ebd049b09001980fcff Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Thu, 31 May 2018 21:32:03 +1000 Subject: [PATCH] fix missed one --- utils/mnetftpd/mnetftpd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/utils/mnetftpd/mnetftpd.c b/utils/mnetftpd/mnetftpd.c index f532857..e73fab9 100644 --- a/utils/mnetftpd/mnetftpd.c +++ b/utils/mnetftpd/mnetftpd.c @@ -723,9 +723,7 @@ void handle_NLST(struct ftpserver *cfg, struct ftpclient *client) { if (pid > 0) { // nothing - client->data_socket = -1; - memset(client->data_ip, 0, INET6_ADDRSTRLEN); - client->data_srv_socket = -1; + close_tcp_connection(client); } else if (pid == 0) { if (client->current_path == NULL) { if (!open_tcp_connection(cfg, client)) {