Skip to content

Commit 7d99053

Browse files
committed
add return
1 parent 266cf7f commit 7d99053

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ protected override void GenerateSspiClientContext(ReadOnlySpan<byte> incomingBlo
2323
// Log session id, status code and the actual SPN used in the negotiation
2424
SqlClientEventSource.Log.TryTraceEvent("{0}.{1} | Info | Session Id {2}, StatusCode={3}, SPN={4}", nameof(NegotiateSSPIContextProvider),
2525
nameof(GenerateSspiClientContext), _physicalStateObj.SessionId, statusCode, negotiateAuth.TargetName);
26+
2627
if (statusCode == NegotiateAuthenticationStatusCode.Completed || statusCode == NegotiateAuthenticationStatusCode.ContinueNeeded)
2728
{
2829
outgoingBlobWriter.Write(result);
30+
return;
2931
}
3032
}
3133

0 commit comments

Comments
 (0)