Avoid passing nil config pointer
This commit is contained in:
parent
4a2e40aa3c
commit
1de62bb0a2
|
@ -293,9 +293,9 @@ func agentMasterAuthorizer(nodeName string, entMeta *structs.EnterpriseMeta) (ac
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
var cfg *acl.Config
|
cfg := acl.Config{}
|
||||||
setEnterpriseConf(entMeta, cfg)
|
setEnterpriseConf(entMeta, &cfg)
|
||||||
return acl.NewPolicyAuthorizerWithDefaults(acl.DenyAll(), []*acl.Policy{policy}, cfg)
|
return acl.NewPolicyAuthorizerWithDefaults(acl.DenyAll(), []*acl.Policy{policy}, &cfg)
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewACLResolver(config *ACLResolverConfig) (*ACLResolver, error) {
|
func NewACLResolver(config *ACLResolverConfig) (*ACLResolver, error) {
|
||||||
|
|
Loading…
Reference in New Issue