Skip to content

Commit a9c52ed

Browse files
committed
Added comment why _negotiateAuth is reset to null when retrying.
1 parent 56dd425 commit a9c52ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SSPI/NegotiateSSPIContextProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ internal override void GenerateSspiClientContext(ReadOnlyMemory<byte> received,
2525
if (statusCode == NegotiateAuthenticationStatusCode.Completed || statusCode == NegotiateAuthenticationStatusCode.ContinueNeeded)
2626
break;
2727
else
28-
_negotiateAuth = null;
28+
_negotiateAuth = null; // Reset _negotiateAuth to be generated again for next SPN.
2929
}
3030

3131
if (statusCode is not NegotiateAuthenticationStatusCode.Completed and not NegotiateAuthenticationStatusCode.ContinueNeeded)

0 commit comments

Comments
 (0)