/*
- * $Id: ftp.cc,v 1.379 2006/01/24 06:35:54 wessels Exp $
+ * $Id: ftp.cc,v 1.380 2006/01/24 17:38:12 wessels Exp $
*
* DEBUG: section 9 File Transfer Protocol (FTP)
* AUTHOR: Harvest Derived
if (errflag) {
debug(9, 1) ("ftpWriteCommandCallback: FD %d: %s\n", fd, xstrerr(xerrno));
- ftpState->failed( ERR_WRITE_ERROR, xerrno);
+ ftpState->failed(ERR_WRITE_ERROR, xerrno);
/* failed closes ctrl.fd and frees ftpState */
return;
}
if (ignoreErrno(xerrno)) {
ftpState->scheduleReadControlReply(0);
} else {
- ftpState->failed( ERR_READ_ERROR, xerrno);
+ ftpState->failed(ERR_READ_ERROR, xerrno);
/* failed closes ctrl.fd and frees ftpState */
return;
}
if (len == 0) {
if (entry->store_status == STORE_PENDING) {
- ftpState->failed( ERR_FTP_FAILURE, 0);
+ ftpState->failed(ERR_FTP_FAILURE, 0);
/* failed closes ctrl.fd and frees ftpState */
return;
}
debug(9, 2) ("ftpPasvCallback: failed to connect. Retrying without PASV.\n");
ftpState->fwd->dontRetry(false); /* this is a retryable error */
ftpState->fwd->ftpPasvFailed(true);
- ftpState->failed( ERR_NONE, 0);
+ ftpState->failed(ERR_NONE, 0);
/* failed closes ctrl.fd and frees ftpState */
return;
}
} else { /* != 226 */
debug(9, 1) ("ftpReadTransferDone: Got code %d after reading data\n",
code);
- ftpState->failed( ERR_FTP_FAILURE, 0);
+ ftpState->failed(ERR_FTP_FAILURE, 0);
/* failed closes ctrl.fd and frees ftpState */
return;
}
} else if (size < 0) {
/* Error */
debug(9, 1) ("ftpRequestBody: request aborted");
- ftpState->failed( ERR_READ_ERROR, 0);
+ ftpState->failed(ERR_READ_ERROR, 0);
} else if (size == 0) {
/* End of transfer */
ftpState->dataComplete();
clientReadBody(ftpState->request, ftpState->data.buf, ftpState->data.size, ftpRequestBody, ftpState);
} else {
debug(9, 1) ("ftpDataWriteCallback: write error: %s\n", xstrerr(xerrno));
- ftpState->failed( ERR_WRITE_ERROR, xerrno);
+ ftpState->failed(ERR_WRITE_ERROR, xerrno);
}
}
if (!(code == 226 || code == 250)) {
debug(9, 1) ("ftpReadTransferDone: Got code %d after sending data\n",
code);
- ftpState->failed( ERR_FTP_PUT_ERROR, 0);
+ ftpState->failed(ERR_FTP_PUT_ERROR, 0);
return;
}