aboutsummaryrefslogtreecommitdiff
path: root/lib/imap.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/imap.c')
-rw-r--r--lib/imap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/imap.c b/lib/imap.c
index 52a3541bd..aeb876210 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -495,7 +495,7 @@ static CURLcode imap_state_capability(struct connectdata *conn)
if(!result)
state(conn, IMAP_CAPABILITY);
- return CURLE_OK;
+ return result;
}
static CURLcode imap_state_starttls(struct connectdata *conn)
@@ -560,7 +560,7 @@ static CURLcode imap_state_login(struct connectdata *conn)
if(!result)
state(conn, IMAP_LOGIN);
- return CURLE_OK;
+ return result;
}
static CURLcode imap_authenticate(struct connectdata *conn)