From fc9f3698291d0ba59494207feed674e8d29d9c77 Mon Sep 17 00:00:00 2001 From: Julien Chaffraix Date: Sun, 26 Sep 2010 19:14:50 -0700 Subject: 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. --- lib/security.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/security.c') 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); } -- cgit v1.2.3