From 2d0a00c4e11e44cf91cf41974f0e3f3a4ec655b5 Mon Sep 17 00:00:00 2001 From: David Cowden Date: Mon, 11 May 2020 21:22:40 -0700 Subject: [PATCH] acme/api: Add missing return Stop execution when the error happens. This was previously a typo. --- acme/api/handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/acme/api/handler.go b/acme/api/handler.go index 2deefaed..1acbcb69 100644 --- a/acme/api/handler.go +++ b/acme/api/handler.go @@ -212,6 +212,7 @@ func (h *Handler) GetChallenge(w http.ResponseWriter, r *http.Request) { ch, err = h.Auth.ValidateChallenge(prov, acc.GetID(), chID, acc.GetKey()) if err != nil { api.WriteError(w, err) + return } switch ch.Status {