]> granicus.if.org Git - curl/commitdiff
imap: Fixed custom request handling in imap_done()
authorJiri Hruska <jirka@fud.cz>
Sun, 3 Mar 2013 10:33:53 +0000 (11:33 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 3 Mar 2013 13:10:36 +0000 (13:10 +0000)
Fixed imap_done() so that neither the FINAL states are not entered when
a custom command has been performed.

lib/imap.c

index ca2e43ec6baf3ff252f5f93e18f8e01348ce0721..f1566b361aee610d59ccca7482f2feb85929dbd1 100644 (file)
@@ -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);