Avoid passing nil config pointer

This commit is contained in:
freddygv 2021-10-26 12:40:20 -06:00
parent 4a2e40aa3c
commit 1de62bb0a2
1 changed files with 3 additions and 3 deletions

View File

@ -293,9 +293,9 @@ func agentMasterAuthorizer(nodeName string, entMeta *structs.EnterpriseMeta) (ac
},
}
var cfg *acl.Config
setEnterpriseConf(entMeta, cfg)
return acl.NewPolicyAuthorizerWithDefaults(acl.DenyAll(), []*acl.Policy{policy}, cfg)
cfg := acl.Config{}
setEnterpriseConf(entMeta, &cfg)
return acl.NewPolicyAuthorizerWithDefaults(acl.DenyAll(), []*acl.Policy{policy}, &cfg)
}
func NewACLResolver(config *ACLResolverConfig) (*ACLResolver, error) {