Commit 6f02209c authored by Jiri Hruska's avatar Jiri Hruska Committed by Steve Holme
Browse files

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.
parent 015ceb47
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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: