Commit c542e46e authored by Geoff Simmons's avatar Geoff Simmons

Bugfix a potential nil dereference.

parent be739765
......@@ -628,7 +628,8 @@ func (vc *Controller) Update(svcKey string, spec vcl.Spec, addrs []vcl.Address,
}
for i, addr := range addrs {
svc.instances[i] = &varnishInst{
addr: addr.String(),
addr: addr.String(),
admMtx: &sync.Mutex{},
}
}
vc.svcs[svcKey] = svc
......
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