mirror of
https://github.com/curl/curl.git
synced 2026-05-19 19:16:20 +03:00
imap: Fixed custom request handling in imap_done()
Fixed imap_done() so that neither the FINAL states are not entered when a custom command has been performed.
This commit is contained in:
parent
c03cad3a61
commit
284ea5f924
1 changed files with 1 additions and 1 deletions
|
|
@ -1757,7 +1757,7 @@ static CURLcode imap_done(struct connectdata *conn, CURLcode status,
|
|||
conn->bits.close = TRUE; /* marked for closure */
|
||||
result = status; /* use the already set error code */
|
||||
}
|
||||
else if(!data->set.connect_only) {
|
||||
else if(!data->set.connect_only && !imap->custom) {
|
||||
/* Handle responses after FETCH or APPEND transfer has finished */
|
||||
if(!data->set.upload)
|
||||
state(conn, IMAP_FETCH_FINAL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue