Skip to content

Commit 9f2de24

Browse files
committed
remove extra
1 parent 806b059 commit 9f2de24

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ protected override bool GenerateSspiClientContext(ReadOnlySpan<byte> incomingBlo
1919

2020
_negotiateAuth ??= new(new NegotiateAuthenticationClientOptions { Package = "Negotiate", TargetName = authParams.Resource });
2121

22-
Debug.Assert(_negotiateAuth.TargetName == authParams.Resource, "SSPI resource does not match TargetName. SspiContextProvider should ensure that once a target is established it will only call with that.");
23-
2422
var sendBuff = _negotiateAuth.GetOutgoingBlob(incomingBlob, out statusCode)!;
2523

2624
// Log session id, status code and the actual SPN used in the negotiation
@@ -33,8 +31,6 @@ protected override bool GenerateSspiClientContext(ReadOnlySpan<byte> incomingBlo
3331
return true;
3432
}
3533

36-
// Reset _negotiateAuth to be generated again for next SPN.
37-
_negotiateAuth = null;
3834
return false;
3935
}
4036
}

0 commit comments

Comments
 (0)