From b204bb055793145cb11dad3699b7ed1c5f948f50 Mon Sep 17 00:00:00 2001 From: makeworld <25111343+makeworld-the-better-one@users.noreply.github.com> Date: Fri, 8 Apr 2022 17:09:23 -0400 Subject: [PATCH] fix(gw): missing return if dir fails to finalize (#8806) --- core/corehttp/gateway_handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/corehttp/gateway_handler.go b/core/corehttp/gateway_handler.go index b14b88739d29..d2446450b53f 100644 --- a/core/corehttp/gateway_handler.go +++ b/core/corehttp/gateway_handler.go @@ -662,6 +662,7 @@ func (i *gatewayHandler) deleteHandler(w http.ResponseWriter, r *http.Request) { nnode, err := root.GetDirectory().GetNode() if err != nil { webError(w, "WritableGateway: failed to finalize", err, http.StatusInternalServerError) + return } ncid := nnode.Cid()