From be51a4635350547e7e4d886ab3ff28cddc72a82b Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Thu, 28 Feb 2013 23:09:28 +0000 Subject: imap: Fixed accidentally lossing the result code Accidentally lost the result code in imap_state_capability() and imap_state_login() with commit b06a78622609. --- lib/imap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/imap.c') 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) -- cgit v1.2.3