acme/api: Add missing return

Stop execution when the error happens. This was previously a typo.
This commit is contained in:
David Cowden 2020-05-11 21:22:40 -07:00
parent 8326632f5b
commit 2d0a00c4e1

View file

@ -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 {