Skip to content

Commit

Permalink
Fix inconsistency between netcore and netfx
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Engel committed Jul 18, 2022
1 parent 8682741 commit 0a30f56
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 0a30f56

Please sign in to comment.