consul: fast path a typed nil during ACL filtering

pull/1029/head
Ryan Uber 2015-06-12 16:46:15 -07:00
parent f7f7c4695e
commit cee0af8d5c
1 changed files with 3 additions and 1 deletions

View File

@ -349,7 +349,9 @@ func (s *Server) filterACL(token string, subj interface{}) error {
filt.filterServiceNodes(&v.ServiceNodes)
case *structs.IndexedNodeServices:
if v.NodeServices != nil {
filt.filterNodeServices(v.NodeServices)
}
case *structs.IndexedCheckServiceNodes:
filt.filterCheckServiceNodes(&v.Nodes)