aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/imap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/imap.c b/lib/imap.c
index ae2fd4102..27c6a0565 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -730,10 +730,10 @@ static CURLcode imap_state_servergreet_resp(struct connectdata *conn,
if(imapcode != 'O') {
failf(data, "Got unexpected imap-server response");
- return CURLE_FTP_WEIRD_SERVER_REPLY; /* TODO: fix this code */
+ result = CURLE_FTP_WEIRD_SERVER_REPLY; /* TODO: fix this code */
}
-
- result = imap_state_capability(conn);
+ else
+ result = imap_state_capability(conn);
return result;
}