IAM: Fix nil panic due to uninit. iamGroupPolicyMap. Fixes #9730 (#9734)

master
Anton Huck 5 years ago committed by GitHub
parent 3780ec699f
commit f833e41e69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      cmd/iam.go

@ -1798,6 +1798,7 @@ func NewIAMSys() *IAMSys {
iamUsersMap: make(map[string]auth.Credentials), iamUsersMap: make(map[string]auth.Credentials),
iamPolicyDocsMap: make(map[string]iampolicy.Policy), iamPolicyDocsMap: make(map[string]iampolicy.Policy),
iamUserPolicyMap: make(map[string]MappedPolicy), iamUserPolicyMap: make(map[string]MappedPolicy),
iamGroupPolicyMap: make(map[string]MappedPolicy),
iamGroupsMap: make(map[string]GroupInfo), iamGroupsMap: make(map[string]GroupInfo),
iamUserGroupMemberships: make(map[string]set.StringSet), iamUserGroupMemberships: make(map[string]set.StringSet),
} }

Loading…
Cancel
Save