Commit 5c3ea7ac authored by Geoff Simmons's avatar Geoff Simmons

Prevent another nil dereference in varnish.Controller.HasConfig().

parent ba35369c
......@@ -699,6 +699,9 @@ func (vc *Controller) HasConfig(svcKey string, spec vcl.Spec,
if !svc.cfgLoaded {
return false
}
if svc.spec == nil {
return false
}
if svc.spec.ings == nil {
return false
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment