]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix ftp client's passive mode.
authorGianluca Guida <gianluca@minix3.org>
Wed, 2 Jun 2010 21:12:54 +0000 (21:12 +0000)
committerGianluca Guida <gianluca@minix3.org>
Wed, 2 Jun 2010 21:12:54 +0000 (21:12 +0000)
Before the ioctl the code zeroed the wrong variable.

commands/ftp101/net.c

index b2c9e87dc01dabcabc6fa82c09e95d3c8f5ed741..a112e443986c8e01772774b54f11d1206328e911 100644 (file)
@@ -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