From 2ff8f485ea640b03a322df0f49ed79af92aa1f0b Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Mon, 3 Aug 2020 13:58:41 -0500 Subject: [PATCH] Missing return after early exit the exists code was plagued by a missing return statement meant to trigger an early exit. Fixes: #7197 Signed-off-by: Brent Baude --- pkg/api/handlers/libpod/containers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/api/handlers/libpod/containers.go b/pkg/api/handlers/libpod/containers.go index 21904e21f3..2303ff17a8 100644 --- a/pkg/api/handlers/libpod/containers.go +++ b/pkg/api/handlers/libpod/containers.go @@ -23,6 +23,7 @@ func ContainerExists(w http.ResponseWriter, r *http.Request) { if err != nil { if errors.Cause(err) == define.ErrNoSuchCtr { utils.ContainerNotFound(w, name, err) + return } utils.InternalServerError(w, err) return