From 0a42d36ac62255a8416b997b5f9bfdbe846aa652 Mon Sep 17 00:00:00 2001 From: Gianluca Guida Date: Wed, 2 Jun 2010 21:12:54 +0000 Subject: [PATCH] Fix ftp client's passive mode. Before the ioctl the code zeroed the wrong variable. --- commands/ftp101/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/ftp101/net.c b/commands/ftp101/net.c index b2c9e87dc..a112e4439 100644 --- a/commands/ftp101/net.c +++ b/commands/ftp101/net.c @@ -352,7 +352,7 @@ int wasopen; if(passive) { /* passive mode we connect to them */ - tcplopt.nwtcl_flags = 0; + tcpcopt.nwtcl_flags = 0; #ifdef DEBUG printf("Doing TCPCONN\n"); #endif