Skip to content

Commit 16c9509

Browse files
Fixes regression in Integrated Security auth in Managed SNI
1 parent b48de5d commit 16c9509

File tree

1 file changed

+2
-1
lines changed
  • src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI

1 file changed

+2
-1
lines changed

src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIProxy.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ internal void GenSspiClientContext(SspiClientContextStatus sspiClientContextStat
9696
inSecurityBufferArray = Array.Empty<SecurityBuffer>();
9797
}
9898

99-
int tokenSize = MaxTokenSize;
99+
int tokenSize = NegotiateStreamPal.QueryMaxTokenSize(securityPackage);
100+
100101
SecurityBuffer outSecurityBuffer = new SecurityBuffer(tokenSize, SecurityBufferType.SECBUFFER_TOKEN);
101102

102103
ContextFlagsPal requestedContextFlags = ContextFlagsPal.Connection

0 commit comments

Comments
 (0)