diff options
author | Jiri Hruska <jirka@fud.cz> | 2013-03-03 11:33:53 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-03-03 13:10:36 +0000 |
commit | 284ea5f924f002038b0dcfd5b2ca3ff1e238a818 (patch) | |
tree | b9b84e04878b43bf6cf2cb548595c7217da030e6 /lib | |
parent | c03cad3a61a005c6e91779139484db4dd2ce98d4 (diff) |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/imap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/imap.c b/lib/imap.c index ca2e43ec6..f1566b361 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -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); |