Skip to content

Commit 2b6aa6e

Browse files
committed
fixup! http: attempt Negotiate auth in http.emptyAuth=auto mode
1 parent 6c008b8 commit 2b6aa6e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

http.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -708,14 +708,14 @@ static void init_curl_http_auth(CURL *result)
708708
void 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);

0 commit comments

Comments
 (0)