aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJiri Hruska <jirka@fud.cz>2013-02-25 17:59:05 +0100
committerSteve Holme <steve_holme@hotmail.com>2013-02-25 21:26:40 +0000
commit6f02209cc8211ae76f4bb448de00955e0a02c6a6 (patch)
tree241cc2068115e32736aaee97eb4fe6f79b3e6a8a /lib
parent015ceb47062d7454defb48333c65968ff47f2e66 (diff)
imap: Adjusted SELECT and FETCH state order in imap_statemach_act()
Exchanged the position of these states in the switch statements to match the state enum, execution and function order.
Diffstat (limited to 'lib')
-rw-r--r--lib/imap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/imap.c b/lib/imap.c
index adde5423c..19a1b3de9 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -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: