Skip to content

Commit 35e41c2

Browse files
committed
double check for authzs
1 parent ca7e7b6 commit 35e41c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ra/ra.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,9 @@ func (ra *RegistrationAuthorityImpl) checkAuthorizationsCAA(
748748
acctID int64,
749749
authzs map[identifier.ACMEIdentifier]*core.Authorization,
750750
now time.Time) error {
751+
if len(authzs) == 0 {
752+
return berrors.MalformedError("order with no authorizations")
753+
}
751754
// recheckAuthzs is a list of authorizations that must have their CAA records rechecked
752755
var recheckAuthzs []*core.Authorization
753756

0 commit comments

Comments
 (0)