We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc2a834 commit 1e68c5bCopy full SHA for 1e68c5b
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/TdsParser.cs
@@ -25,6 +25,8 @@ internal void ProcessSSPI(int receivedLength)
25
throw SQL.SynchronousCallMayNotPend();
26
}
27
28
+ receivedBuff.AsSpan(receivedLength, receivedBuff.Length - receivedLength).Clear();
29
+
30
// allocate send buffer and initialize length
31
byte[] rentedSendBuff = ArrayPool<byte>.Shared.Rent((int)_authenticationProvider!.MaxSSPILength);
32
byte[] sendBuff = rentedSendBuff; // need to track these separately in case someone updates the ref parameter
0 commit comments