mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
imap: Fixed accidentally lossing the result code
Accidentally lost the result code in imap_state_capability() and
imap_state_login() with commit b06a786226
.
This commit is contained in:
parent
48596f87a9
commit
be51a46353
@ -495,7 +495,7 @@ static CURLcode imap_state_capability(struct connectdata *conn)
|
|||||||
if(!result)
|
if(!result)
|
||||||
state(conn, IMAP_CAPABILITY);
|
state(conn, IMAP_CAPABILITY);
|
||||||
|
|
||||||
return CURLE_OK;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
static CURLcode imap_state_starttls(struct connectdata *conn)
|
static CURLcode imap_state_starttls(struct connectdata *conn)
|
||||||
@ -560,7 +560,7 @@ static CURLcode imap_state_login(struct connectdata *conn)
|
|||||||
if(!result)
|
if(!result)
|
||||||
state(conn, IMAP_LOGIN);
|
state(conn, IMAP_LOGIN);
|
||||||
|
|
||||||
return CURLE_OK;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
static CURLcode imap_authenticate(struct connectdata *conn)
|
static CURLcode imap_authenticate(struct connectdata *conn)
|
||||||
|
Loading…
Reference in New Issue
Block a user