Skip to content

Commit

Permalink
Fix inconsistency between netcore and netfx (#1672)
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Engel authored Jul 20, 2022
1 parent 4df3929 commit 98acbf1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ internal void Connect(ServerInfo serverInfo,
if (!ClientOSEncryptionSupport)
{
//If encryption is required, an error will be thrown.
if (encrypt == SqlConnectionEncryptOption.Mandatory)
if (encrypt != SqlConnectionEncryptOption.Optional)
{
_physicalStateObj.AddError(new SqlError(TdsEnums.ENCRYPTION_NOT_SUPPORTED, (byte)0x00, TdsEnums.FATAL_ERROR_CLASS, _server, SQLMessage.EncryptionNotSupportedByClient(), "", 0));
_physicalStateObj.Dispose();
Expand Down

0 comments on commit 98acbf1

Please sign in to comment.