Ticket #3679: psftp_outofspace.patch

File psftp_outofspace.patch, 382 bytes (added by Tim Kosse, 11 years ago)
  • psftp.c

     
    707707    if (!xfer_done(xfer)) {
    708708        pktin = sftp_recv();
    709709        ret = xfer_upload_gotpkt(xfer, pktin);
    710         if (!ret) {
     710        if (ret <= 0 && !err) {
    711711        printf("error while writing: %s\n", fxp_error());
    712712        err = 1;
    713713        }