Skip to content

Commit

Permalink
Correct transport check
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorvdeshmukh committed Aug 31, 2023
1 parent e91b8c1 commit 7da34ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tds.go
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ initiate_connection:
}

//We need not perform TLS handshake if the communication channel is already encrypted (encrypt=strict)
if isTransportEncrypted {
if !isTransportEncrypted {
if encrypt != encryptNotSup {
var config *tls.Config
if pc := p.TLSConfig; pc != nil {
Expand Down

0 comments on commit 7da34ad

Please sign in to comment.