source: npl/system/netkit-ftp/patches/11-netkit-ftp-0.17-data.patch @ 0105685

gcc484ntopperl-5.22
Last change on this file since 0105685 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 531 bytes
  • netkit-ftp-0.17/ftp/ftp.c

    old new  
    12231223static int
    12241224initconn(void)
    12251225{
     1226        int rc;
    12261227        u_char *p, *a;
    12271228        int result, tmpno = 0;
    12281229        socklen_t len;
     
    12401241        }
    12411242#endif
    12421243        if (passivemode) {
     1244                if (data >= 0){
     1245                        rc = close (data);
     1246                        data = -1;
     1247                        if (rc == -1){
     1248                                perror ("ftp: close");
     1249                        }
     1250                }
    12431251                data_addr = hisctladdr;
    12441252                data = socket(data_addr.su_family, SOCK_STREAM, 0);
    12451253                if (data < 0) {
Note: See TracBrowser for help on using the repository browser.