aboutsummaryrefslogtreecommitdiff
path: root/authorize.go
diff options
context:
space:
mode:
Diffstat (limited to 'authorize.go')
-rw-r--r--authorize.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/authorize.go b/authorize.go
index e3a0837..c6ea6d6 100644
--- a/authorize.go
+++ b/authorize.go
@@ -26,6 +26,9 @@ const IdentDNS IdentType = "dns"
func (a Authorization) Supported(sols Solvers) []Challenge {
supported := func(com []int) bool {
for _, n := range com {
+ if n < 0 || n >= len(a.Challenges) {
+ return false
+ }
if _, ok := sols[a.Challenges[n].Type]; !ok {
return false
}