fix missed one

This commit is contained in:
Andrew Pamment 2018-05-31 21:32:03 +10:00
parent 0e449b22dd
commit d8f7f66b5e

View File

@ -723,9 +723,7 @@ void handle_NLST(struct ftpserver *cfg, struct ftpclient *client) {
if (pid > 0) { if (pid > 0) {
// nothing // nothing
client->data_socket = -1; close_tcp_connection(client);
memset(client->data_ip, 0, INET6_ADDRSTRLEN);
client->data_srv_socket = -1;
} else if (pid == 0) { } else if (pid == 0) {
if (client->current_path == NULL) { if (client->current_path == NULL) {
if (!open_tcp_connection(cfg, client)) { if (!open_tcp_connection(cfg, client)) {