From 6f02209cc8211ae76f4bb448de00955e0a02c6a6 Mon Sep 17 00:00:00 2001 From: Jiri Hruska Date: Mon, 25 Feb 2013 17:59:05 +0100 Subject: 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. --- lib/imap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') 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: -- cgit v1.2.3