diff options
Diffstat (limited to 'lib/imap.c')
-rw-r--r-- | lib/imap.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/imap.c b/lib/imap.c index 847acd74a..d219b7454 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -1185,7 +1185,6 @@ static CURLcode imap_state_fetch_resp(struct connectdata *conn, int imapcode, CURLcode result = CURLE_OK; struct SessionHandle *data = conn->data; struct imap_conn *imapc = &conn->proto.imapc; - struct IMAP *imap = data->state.proto.imap; struct pingpong *pp = &imapc->pp; const char *ptr = data->state.buffer; @@ -1246,7 +1245,7 @@ static CURLcode imap_state_fetch_resp(struct connectdata *conn, int imapcode, Curl_setup_transfer(conn, -1, -1, FALSE, NULL, -1, NULL); else /* IMAP download */ - Curl_setup_transfer(conn, FIRSTSOCKET, size, FALSE, imap->bytecountp, + Curl_setup_transfer(conn, FIRSTSOCKET, size, FALSE, NULL, -1, NULL); /* no upload here */ data->req.maxdownload = size; @@ -1411,9 +1410,6 @@ static CURLcode imap_init(struct connectdata *conn) return CURLE_OUT_OF_MEMORY; } - /* Get some initial data into the imap struct */ - imap->bytecountp = &data->req.bytecount; - return CURLE_OK; } |