From b8bd013c5830442684ef033030637a009b20c9a2 Mon Sep 17 00:00:00 2001 From: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com> Date: Thu, 18 Jun 2020 13:49:42 -0400 Subject: [PATCH] Fix database creds rotation panic for nil resp (#9258) --- builtin/logical/database/path_rotate_credentials.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/logical/database/path_rotate_credentials.go b/builtin/logical/database/path_rotate_credentials.go index cdcfa9c5b3ad..ce27b2ea6dac 100644 --- a/builtin/logical/database/path_rotate_credentials.go +++ b/builtin/logical/database/path_rotate_credentials.go @@ -143,7 +143,7 @@ func (b *databaseBackend) pathRotateRoleCredentialsUpdate() framework.OperationF item.Priority = time.Now().Add(10 * time.Second).Unix() // Preserve the WALID if it was returned - if resp.WALID != "" { + if resp != nil && resp.WALID != "" { item.Value = resp.WALID } } else {