Skip to content

Commit 3cf00f9

Browse files
committed
Fixed a panic issue in clearNetworkResources
Not sure why govet didnt catch this obvious error Signed-off-by: Madhu Venugopal <madhu@docker.com>
1 parent 48a9f34 commit 3cf00f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sandbox.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ func (sb *sandbox) clearNetworkResources(origEp *endpoint) error {
650650
ep := sb.getEndpoint(origEp.id)
651651
if ep == nil {
652652
return fmt.Errorf("could not find the sandbox endpoint data for endpoint %s",
653-
ep.name)
653+
origEp.id)
654654
}
655655

656656
sb.Lock()

0 commit comments

Comments
 (0)