From: Jiri Hruska Date: Mon, 25 Feb 2013 16:59:05 +0000 (+0100) Subject: imap: Adjusted SELECT and FETCH state order in imap_statemach_act() X-Git-Tag: curl-7_30_0~266 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f02209cc8211ae76f4bb448de00955e0a02c6a6;p=curl 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. --- 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: