Skip to content

Commit

Permalink
Merge pull request #43 from cyberark/fix-gosec
Browse files Browse the repository at this point in the history
CNJR-5372: Fix 'nosec' comments
  • Loading branch information
szh authored Jun 25, 2024
2 parents a71a7cb + 1c32bd8 commit 1a872cf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tds.go
Original file line number Diff line number Diff line change
Expand Up @@ -1131,13 +1131,11 @@ initiate_connection:
certs.AppendCertsFromPEM([]byte(p.rawCertificate))
config.RootCAs = certs
}
/* #nosec */
if p.trustServerCertificate {
config.InsecureSkipVerify = true
config.InsecureSkipVerify = true // #nosec
}
/* #nosec */
if p.disableVerifyHostname {
config.InsecureSkipVerify = true
config.InsecureSkipVerify = true // #nosec
}
config.ServerName = p.hostInCertificate
// fix for https://github.com/denisenkom/go-mssqldb/issues/166
Expand Down

0 comments on commit 1a872cf

Please sign in to comment.