mirror of
https://github.com/securego/gosec.git
synced 2024-12-24 11:35:52 +00:00
Auto-detect TLS MinVersion integer base (#903)
This commit is contained in:
parent
c39bcdb989
commit
dabc7dc27e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue