mirror of
https://github.com/curl/curl.git
synced 2026-08-25 04:23:36 +03:00
security.c: Fix Curl_sec_login after rewrite.
Curl_sec_login was returning the opposite result that the code in ftp.c was expecting. Simplified the return code (using a CURLcode) so to see more clearly what is going on.
This commit is contained in:
parent
bfbc4c7e00
commit
fc9f369829
3 changed files with 4 additions and 5 deletions
|
|
@ -566,11 +566,10 @@ static CURLcode choose_mech(struct connectdata *conn)
|
|||
return mech != NULL ? CURLE_OK : CURLE_FAILED_INIT;
|
||||
}
|
||||
|
||||
int
|
||||
CURLcode
|
||||
Curl_sec_login(struct connectdata *conn)
|
||||
{
|
||||
CURLcode code = choose_mech(conn);
|
||||
return code == CURLE_OK;
|
||||
return choose_mech(conn);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue