Skip to content

Commit

Permalink
Fix intermittent panic connecting to Duo
Browse files Browse the repository at this point in the history
Fixes #2030
  • Loading branch information
jefferai committed Jan 23, 2018
1 parent b214ac1 commit 07f91d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helper/mfa/duo/path_duo_access.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ func GetDuoAuthClient(ctx context.Context, req *logical.Request, config *DuoConf
if err != nil {
return nil, err
}
if check.StatResult == nil {
return nil, fmt.Errorf("Could not connect to Duo; got nil result back from API check call")
}
if check.StatResult.Stat != "OK" {
return nil, fmt.Errorf("Could not connect to Duo: %s (%s)", *check.StatResult.Message, *check.StatResult.Message_Detail)
}
Expand Down

0 comments on commit 07f91d2

Please sign in to comment.