From ec19c6cccddb123ec283628405e2b73fc7601257 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Tue, 23 Jan 2018 11:32:18 -0500 Subject: [PATCH] Fix build --- helper/mfa/duo/path_duo_access.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/mfa/duo/path_duo_access.go b/helper/mfa/duo/path_duo_access.go index 7578413b6832..2eb0b32784f3 100644 --- a/helper/mfa/duo/path_duo_access.go +++ b/helper/mfa/duo/path_duo_access.go @@ -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" {