mirror of
https://github.com/curl/curl.git
synced 2026-04-20 03:41:15 +03:00
pop3_doing: don't call pop3_dophase_done() if already failed
... it also clobbered the 'result' return value so that it wouldn't return the error back to the parent function properly, which broke test 809 when run with 'multi-always'.
This commit is contained in:
parent
5ed03ebe52
commit
2897ce7dc2
1 changed files with 1 additions and 1 deletions
|
|
@ -1554,7 +1554,7 @@ static CURLcode pop3_doing(struct connectdata *conn, bool *dophase_done)
|
|||
CURLcode result;
|
||||
result = pop3_multi_statemach(conn, dophase_done);
|
||||
|
||||
if(*dophase_done) {
|
||||
if(!result && *dophase_done) {
|
||||
result = pop3_dophase_done(conn, FALSE /* not connected */);
|
||||
|
||||
DEBUGF(infof(conn->data, "DO phase is complete\n"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue