Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
if server sends invalid challenge, don't continue processing (#28704)
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffkizer authored and stephentoub committed Apr 2, 2018
1 parent ff79c49 commit 660dc94
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -62,6 +62,11 @@ private static async Task<HttpResponseMessage> SendWithNtAuthAsync(HttpRequestMe
while (true)
{
string challengeResponse = authContext.GetOutgoingBlob(challengeData);
if (challengeResponse == null)
{
// Server sent something invalid, so stop processing and return current response.
break;
}

await connection.DrainResponseAsync(response).ConfigureAwait(false);

Expand Down

0 comments on commit 660dc94

Please sign in to comment.