This commit is contained in:
Jeff Widman 2020-12-11 00:34:38 -08:00 committed by GitHub
parent d8fa95aad8
commit 9fe0b2e21a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -134,7 +134,7 @@ func (t *insecureConfigTLS) mapVersion(version string) int16 {
func (t *insecureConfigTLS) checkVersion(n ast.Node, c *gosec.Context) *gosec.Issue { func (t *insecureConfigTLS) checkVersion(n ast.Node, c *gosec.Context) *gosec.Issue {
if t.actualMaxVersion == 0 && t.actualMinVersion >= t.MinVersion { if t.actualMaxVersion == 0 && t.actualMinVersion >= t.MinVersion {
// no warning is generated since the min version is grater than the secure min version // no warning is generated since the min version is greater than the secure min version
return nil return nil
} }
if t.actualMinVersion < t.MinVersion { if t.actualMinVersion < t.MinVersion {