mirror of https://github.com/hashicorp/consul
consul: fast path a typed nil during ACL filtering
parent
f7f7c4695e
commit
cee0af8d5c
|
@ -349,7 +349,9 @@ func (s *Server) filterACL(token string, subj interface{}) error {
|
|||
filt.filterServiceNodes(&v.ServiceNodes)
|
||||
|
||||
case *structs.IndexedNodeServices:
|
||||
filt.filterNodeServices(v.NodeServices)
|
||||
if v.NodeServices != nil {
|
||||
filt.filterNodeServices(v.NodeServices)
|
||||
}
|
||||
|
||||
case *structs.IndexedCheckServiceNodes:
|
||||
filt.filterCheckServiceNodes(&v.Nodes)
|
||||
|
|
Loading…
Reference in New Issue