1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-11 15:50:48 -04:00

Fixed bad krb4 code. It always tried to use krb4 if built enabled.

This commit is contained in:
Daniel Stenberg 2005-02-11 22:50:57 +00:00
parent 73772323c9
commit b98faaa8c0

View File

@ -2154,21 +2154,23 @@ static CURLcode ftp_state_loggedin(struct connectdata *conn)
infof(data, "We have successfully logged in\n"); infof(data, "We have successfully logged in\n");
#ifdef HAVE_KRB4 #ifdef HAVE_KRB4
/* We are logged in with Kerberos, now set the requested if(data->set.krb4) {
* protection level /* We are logged in, asked to use Kerberos. Set the requested
*/ * protection level
if(conn->sec_complete) */
/* BLOCKING */ if(conn->sec_complete)
Curl_sec_set_protection_level(conn); /* BLOCKING */
Curl_sec_set_protection_level(conn);
/* We may need to issue a KAUTH here to have access to the files
* do it if user supplied a password /* We may need to issue a KAUTH here to have access to the files
*/ * do it if user supplied a password
if(conn->passwd && *conn->passwd) { */
/* BLOCKING */ if(conn->passwd && *conn->passwd) {
result = Curl_krb_kauth(conn); /* BLOCKING */
if(result) result = Curl_krb_kauth(conn);
return result; if(result)
return result;
}
} }
#endif #endif
if(conn->ssl[FIRSTSOCKET].use) { if(conn->ssl[FIRSTSOCKET].use) {