Skip to content

Commit

Permalink
fix: check if BucketExtraInfo is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
BarryTong65 committed Apr 11, 2024
1 parent a9f7a1a commit 32edb6b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modular/authenticator/authenticator.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,10 @@ func (a *AuthenticationModular) VerifyAuthentication(
}
return false, ErrConsensusWithDetail("failed to get bucket extra info from consensus, error: " + err.Error())
}
if bucketExtraInfo.IsRateLimited {
return false, ErrBucketIsRateLimited
if bucketExtraInfo != nil {
if bucketExtraInfo.IsRateLimited {
return false, ErrBucketIsRateLimited
}
}
spID, err := a.getSPID()
if err != nil {
Expand Down

0 comments on commit 32edb6b

Please sign in to comment.