aboutsummaryrefslogtreecommitdiff
path: root/lib/imap.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-02-10 21:18:30 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-02-10 21:18:30 +0000
commit85a2e9ec820a8d904d4733f1d84007e806409e10 (patch)
treeeadba81596a84716fcae2c674a09f671193a6a51 /lib/imap.c
parent18d1ea45282508825b74ebf6704db812797e553a (diff)
email: Post STARTLS capability code tidy up (Part One)
Corrected the order of the CAPA / CAPABILITY state machine constants to match the execution order.
Diffstat (limited to 'lib/imap.c')
-rw-r--r--lib/imap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/imap.c b/lib/imap.c
index be0de2eed..5ef2e0f66 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -433,9 +433,9 @@ static void state(struct connectdata *conn, imapstate newstate)
static const char * const names[]={
"STOP",
"SERVERGREET",
+ "CAPABILITY",
"STARTTLS",
"UPGRADETLS",
- "CAPABILITY",
"AUTHENTICATE_PLAIN",
"AUTHENTICATE_LOGIN",
"AUTHENTICATE_LOGIN_PASSWD",
@@ -1265,14 +1265,14 @@ static CURLcode imap_statemach_act(struct connectdata *conn)
result = imap_state_servergreet_resp(conn, imapcode, imapc->state);
break;
- case IMAP_STARTTLS:
- result = imap_state_starttls_resp(conn, imapcode, imapc->state);
- break;
-
case IMAP_CAPABILITY:
result = imap_state_capability_resp(conn, imapcode, imapc->state);
break;
+ case IMAP_STARTTLS:
+ result = imap_state_starttls_resp(conn, imapcode, imapc->state);
+ break;
+
case IMAP_AUTHENTICATE_PLAIN:
result = imap_state_auth_plain_resp(conn, imapcode, imapc->state);
break;