Skip to content

Commit 49ebc99

Browse files
authored
va: Put most recent, not original, IP in error messages (add'l case) (#8028)
Fix a remaining edge case after #7468: one call to `newIPError` did not account for when we retry *successfully,* but then are served a redirect which errors. In those cases, our `client.Do` call results in our redirect handler `processRedirect` appending yet another validation record to `records`, which was missed. Fixes #7347
1 parent 28b49a8 commit 49ebc99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

va/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ func (va *ValidationAuthorityImpl) processHTTPValidation(
592592
// If the retry still failed there isn't anything more to do, return the
593593
// error immediately.
594594
if err != nil {
595-
return nil, records, newIPError(retryRecord.AddressUsed, err)
595+
return nil, records, newIPError(records[len(records)-1].AddressUsed, err)
596596
}
597597
} else if err != nil {
598598
// if the error was not a fallbackErr then return immediately.

0 commit comments

Comments
 (0)