forked from TrueCloudLab/certificates
acme/api: Add missing return
Stop execution when the error happens. This was previously a typo.
This commit is contained in:
parent
8326632f5b
commit
2d0a00c4e1
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue