Fixed a panic issue in clearNetworkResources

Not sure why govet didnt catch this obvious error

Signed-off-by: Madhu Venugopal <madhu@docker.com>
This commit is contained in:
Madhu Venugopal 2016-03-03 08:23:10 -08:00
parent 7c9afb0303
commit 093df0b922

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()