Pārlūkot izejas kodu

Fixed a panic issue in clearNetworkResources

Not sure why govet didnt catch this obvious error

Signed-off-by: Madhu Venugopal <madhu@docker.com>
Madhu Venugopal 9 gadi atpakaļ
vecāks
revīzija
093df0b922
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      libnetwork/sandbox.go

+ 1 - 1
libnetwork/sandbox.go

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