]> granicus.if.org Git - curl/commitdiff
imap: Adjusted SELECT and FETCH state order in imap_statemach_act()
authorJiri Hruska <jirka@fud.cz>
Mon, 25 Feb 2013 16:59:05 +0000 (17:59 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Mon, 25 Feb 2013 21:26:40 +0000 (21:26 +0000)
Exchanged the position of these states in the switch statements to
match the state enum, execution and function order.

lib/imap.c

index adde5423c2a78246faf5b42a50e8eb6e6b69168b..19a1b3de9c501c435a9656d350d4bb6933133a6b 100644 (file)
@@ -1348,14 +1348,14 @@ static CURLcode imap_statemach_act(struct connectdata *conn)
       result = imap_state_login_resp(conn, imapcode, imapc->state);
       break;
 
-    case IMAP_FETCH:
-      result = imap_state_fetch_resp(conn, imapcode, imapc->state);
-      break;
-
     case IMAP_SELECT:
       result = imap_state_select_resp(conn, imapcode, imapc->state);
       break;
 
+    case IMAP_FETCH:
+      result = imap_state_fetch_resp(conn, imapcode, imapc->state);
+      break;
+
     case IMAP_LOGOUT:
       /* fallthrough, just stop! */
     default: