Skip to content

Commit

Permalink
consul: fast path a typed nil during ACL filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanuber committed Jun 12, 2015
1 parent f7f7c46 commit cee0af8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion consul/acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cee0af8

Please sign in to comment.