Skip to content

Commit a2713c9

Browse files
committed
fix logic
1 parent f6feaf9 commit a2713c9

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/SspiContextProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ internal void WriteSSPIContext(ReadOnlySpan<byte> receivedBuff, IBufferWriter<by
5151
{
5252
using var _ = TrySNIEventScope.Create(nameof(SspiContextProvider));
5353

54-
if (TryRunSingle(receivedBuff, outgoingBlobWriter) || TryRunMultiple(receivedBuff, outgoingBlobWriter))
54+
if (!TryRunSingle(receivedBuff, outgoingBlobWriter) && !TryRunMultiple(receivedBuff, outgoingBlobWriter))
5555
{
5656
// If we've hit here, the SSPI context provider implementation failed to generate the SSPI context.
5757
SSPIError(SQLMessage.SSPIGenerateError(), TdsEnums.GEN_CLIENT_CONTEXT);

0 commit comments

Comments
 (0)