From 8556d45c3ffe68529ceaa403ff1eed03e30a5235 Mon Sep 17 00:00:00 2001 From: David Cowden Date: Wed, 13 May 2020 04:03:01 -0700 Subject: [PATCH] acme/authority: Move comment onto correct block The comment appeared too early. --- acme/authority.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acme/authority.go b/acme/authority.go index b1d13c5b..61b6b08c 100644 --- a/acme/authority.go +++ b/acme/authority.go @@ -311,11 +311,11 @@ func (a *Authority) GetAuthz(p provisioner.Interface, accID, authzID string) (*A // func (a *Authority) ValidateChallenge(p provisioner.Interface, accID, chID string, jwk *jose.JSONWebKey) (*Challenge, error) { ch, err := getChallenge(a.db, chID) - - // Validate the challenge belongs to the account owned by the requester. if err != nil { return nil, err } + + // Validate the challenge belongs to the account owned by the requester. if accID != ch.getAccountID() { return nil, UnauthorizedErr(errors.New("account does not own challenge")) }