Initialize the challenge type map before using it

This commit is contained in:
Richard Barnes 2015-10-31 17:08:25 +09:00
parent 72ed655c0f
commit 587bd8c89a
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ func NewPolicyAuthorityImpl(dbMap *gorp.DbMap, enforceWhitelist bool, challengeT
}
// Take note of which challenges to offer
pa.supportedChallenges = map[string]bool{}
for _, challengeType := range challengeTypes {
pa.supportedChallenges[challengeType] = true
}