Removed this pointer to a downloaded bytes counter because it was set in
smtp_init() to point to the same variable the transfer functions keep
the count in (k->bytecount), effectively making the code in transfer.c
"*k->bytecountp = k->bytecount" a no-op.
smtpstate instate)
{
struct SessionHandle *data = conn->data;
- struct SMTP *smtp = data->state.proto.smtp;
(void)instate; /* no use for this yet */
/* SMTP upload */
Curl_setup_transfer(conn, -1, -1, FALSE, NULL, /* no download */
- FIRSTSOCKET, smtp->bytecountp);
+ FIRSTSOCKET, NULL);
/* End of do phase */
state(conn, SMTP_STOP);
return CURLE_OUT_OF_MEMORY;
}
- /* Get some initial data into the smtp struct */
- smtp->bytecountp = &data->req.bytecount;
-
return CURLE_OK;
}
perhaps the SessionHandle is changed between the times the connection is
used. */
struct SMTP {
- curl_off_t *bytecountp;
curl_pp_transfer transfer;
struct curl_slist *rcpt; /* Recipient list */
};