Skip to content

[v15] tsh: fix panic when loading profile#38305

Merged
zmb3 merged 1 commit intobranch/v15from
bot/backport-38197-branch/v15
Feb 15, 2024
Merged

[v15] tsh: fix panic when loading profile#38305
zmb3 merged 1 commit intobranch/v15from
bot/backport-38197-branch/v15

Conversation

@zmb3
Copy link
Copy Markdown
Collaborator

@zmb3 zmb3 commented Feb 15, 2024

Backport #38197 to branch/v15

changelog: fix a potential panic in the tsh status command.

When unmarshaling the profile YAML, it's possible for the unmarshal
to complete without error while not populating the profile struct,
which leads to a panic.

Fix the nil pointer dereference by unmarshaling into a Profile
instead of a *Profile, and further improve the error message
when this happens.

Fixes #38188
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from Joerger February 15, 2024 22:00
@zmb3 zmb3 added this pull request to the merge queue Feb 15, 2024
Merged via the queue into branch/v15 with commit a4039c9 Feb 15, 2024
@zmb3 zmb3 deleted the bot/backport-38197-branch/v15 branch February 15, 2024 23:44
@fheinecke fheinecke mentioned this pull request Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants