We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3520a5a + b6f85d5 commit 9a2bec1Copy full SHA for 9a2bec1
rules/tls.go
@@ -106,7 +106,7 @@ func (t *insecureConfigTLS) processTLSConfVal(n *ast.KeyValueExpr, c *gas.Contex
106
}
107
108
func (t *insecureConfigTLS) Match(n ast.Node, c *gas.Context) (*gas.Issue, error) {
109
- if complit, ok := n.(*ast.CompositeLit); ok && c.Info.TypeOf(complit.Type).String() == t.requiredType {
+ if complit, ok := n.(*ast.CompositeLit); ok && complit.Type != nil && c.Info.TypeOf(complit.Type).String() == t.requiredType {
110
for _, elt := range complit.Elts {
111
if kve, ok := elt.(*ast.KeyValueExpr); ok {
112
issue := t.processTLSConfVal(kve, c)
0 commit comments