From 0b8b390ed6a146a1d954009e019db19c90689a3b Mon Sep 17 00:00:00 2001 From: Nick Cabatoff Date: Fri, 9 Aug 2019 10:01:26 -0400 Subject: [PATCH] Fix regression that causes panic when logging in via Radius. --- builtin/credential/radius/path_login.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/credential/radius/path_login.go b/builtin/credential/radius/path_login.go index 6727a12c186f..75b088e653e4 100644 --- a/builtin/credential/radius/path_login.go +++ b/builtin/credential/radius/path_login.go @@ -123,11 +123,11 @@ func (b *backend) pathLogin(ctx context.Context, req *logical.Request, d *framew } cfg.PopulateTokenAuth(auth) + resp.Auth = auth if policies != nil { resp.Auth.Policies = append(resp.Auth.Policies, policies...) } - resp.Auth = auth return resp, nil }