Skip to content

Commit

Permalink
Fix database creds rotation panic for nil resp (#9258)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonodonnell committed Jun 18, 2020
1 parent 4bb08b7 commit 3447871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/logical/database/path_rotate_credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,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 {
Expand Down

0 comments on commit 3447871

Please sign in to comment.