Merge pull request #987 from mavenugo/cnr

Fixed a panic issue in clearNetworkResources
This commit is contained in:
Alessandro Boch 2016-03-03 08:57:55 -08:00
commit 48dadca30a

View file

@ -650,7 +650,7 @@ func (sb *sandbox) clearNetworkResources(origEp *endpoint) error {
ep := sb.getEndpoint(origEp.id)
if ep == nil {
return fmt.Errorf("could not find the sandbox endpoint data for endpoint %s",
ep.name)
origEp.id)
}
sb.Lock()