summaryrefslogtreecommitdiff
path: root/lib/security.c
diff options
context:
space:
mode:
authorJulien Chaffraix <julien.chaffraix@gmail.com>2010-09-26 19:14:50 -0700
committerJulien Chaffraix <julien.chaffraix@gmail.com>2010-09-28 22:05:24 -0700
commitfc9f3698291d0ba59494207feed674e8d29d9c77 (patch)
treeb5865db5d088677707beea7ad95535ad09a31f5f /lib/security.c
parentbfbc4c7e00303ca8ddcb6245a23b5768adb8f1c0 (diff)
downloadcurl-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.c5
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);
}