diff options
author | Julien Chaffraix <julien.chaffraix@gmail.com> | 2010-09-26 19:14:50 -0700 |
---|---|---|
committer | Julien Chaffraix <julien.chaffraix@gmail.com> | 2010-09-28 22:05:24 -0700 |
commit | fc9f3698291d0ba59494207feed674e8d29d9c77 (patch) | |
tree | b5865db5d088677707beea7ad95535ad09a31f5f /lib/security.c | |
parent | bfbc4c7e00303ca8ddcb6245a23b5768adb8f1c0 (diff) | |
download | curl-fc9f3698291d0ba59494207feed674e8d29d9c77.tar.gz |
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.
Diffstat (limited to 'lib/security.c')
-rw-r--r-- | lib/security.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/security.c b/lib/security.c index 25cd483c1..9e74eb277 100644 --- a/lib/security.c +++ b/lib/security.c @@ -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); } |