Skip to content

Commit

Permalink
Auto-detect TLS MinVersion integer base (#903)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaveTheRbtz committed Dec 12, 2022
1 parent c39bcdb commit dabc7dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/tls.go
Expand Up @@ -107,7 +107,7 @@ func (t *insecureConfigTLS) processTLSConfVal(n *ast.KeyValueExpr, c *gosec.Cont
tObj := imp.Scope().Lookup(sel)
if cst, ok := tObj.(*types.Const); ok {
// ..got the value check if this can be translated
if minVersion, err := strconv.ParseInt(cst.Val().String(), 10, 64); err == nil {
if minVersion, err := strconv.ParseInt(cst.Val().String(), 0, 64); err == nil {
t.actualMinVersion = minVersion
}
}
Expand Down

0 comments on commit dabc7dc

Please sign in to comment.