File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -708,14 +708,14 @@ static void init_curl_http_auth(CURL *result)
708708void http_reauth_prepare (int all_capabilities )
709709{
710710 /*
711- * In auto empty-auth mode, if we have no credentials yet and
712- * empty auth is enabled (meaning an exotic method like Negotiate
713- * is available), skip credential_fill and let the empty auth
714- * mechanism handle the retry .
711+ * If we deferred stripping Negotiate to give empty auth a
712+ * chance (auto mode), skip credential_fill on this retry so
713+ * that init_curl_http_auth() sends empty credentials and
714+ * libcurl can attempt Negotiate with the system ticket cache .
715715 */
716- if (curl_empty_auth == -1 &&
716+ if (empty_auth_try_negotiate &&
717717 !http_auth .password && !http_auth .credential &&
718- curl_empty_auth_enabled ( ))
718+ ( http_auth_methods & CURLAUTH_GSSNEGOTIATE ))
719719 return ;
720720
721721 credential_fill (the_repository , & http_auth , all_capabilities );
You can’t perform that action at this time.
0 commit comments