We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2174aa0 commit 5625892Copy full SHA for 5625892
src/transports/auth_negotiate.c
@@ -128,9 +128,9 @@ static int negotiate_next_token(
128
input_token.length = input_buf.size;
129
input_token_ptr = &input_token;
130
} else if (ctx->gss_context != GSS_C_NO_CONTEXT) {
131
- git_error_set(GIT_ERROR_NET, "could not restart authentication");
132
- error = -1;
133
- goto done;
+ /* If we're given a half-built security context, delete it so auth can continue. */
+ gss_delete_sec_context(&status_minor, &ctx->gss_context, GSS_C_NO_BUFFER);
+ ctx->gss_context = GSS_C_NO_CONTEXT;
134
}
135
136
mech = &negotiate_oid_spnego;
0 commit comments