Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferai committed Jan 23, 2018
1 parent a9f027f commit ec19c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper/mfa/duo/path_duo_access.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func GetDuoAuthClient(ctx context.Context, req *logical.Request, config *DuoConf
if err != nil {
return nil, err
}
if check.StatResult == nil {
if check == nil || check.StatResult.Message == nil || check.StatResult.Message_Detail == nil {
return nil, fmt.Errorf("Could not connect to Duo; got nil result back from API check call")
}
if check.StatResult.Stat != "OK" {
Expand Down

0 comments on commit ec19c6c

Please sign in to comment.