Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7b7ee36

Browse files
committed
make sure to use correct length
1 parent43ec92d commit7b7ee36

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SSPI/NativeSSPIContextProvider.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ protected override void GenerateSspiClientContext(ReadOnlySpan<byte> incomingBlo
5858
SNIHandlehandle=_physicalStateObj.SessionHandle.NativeHandle;
5959
#endif
6060

61-
varoutBuff=outgoingBlobWriter.GetSpan((int)s_maxSSPILength);
62-
uintsendLength=0;
61+
// This must start as the length of the input, but will be updated by the call to SNISecGenClientContext to the written length
62+
varsendLength=s_maxSSPILength;
63+
varoutBuff=outgoingBlobWriter.GetSpan((int)sendLength);
6364

6465
if(0!=SniNativeWrapper.SNISecGenClientContext(handle,incomingBlob,outBuff,refsendLength,_sniSpnBuffer[0]))
6566
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp