Skip to content

[v13] tsh: fix panic when loading profile#38303

Merged
zmb3 merged 2 commits intobranch/v13from
bot/backport-38197-branch/v13
Feb 16, 2024
Merged

[v13] tsh: fix panic when loading profile#38303
zmb3 merged 2 commits intobranch/v13from
bot/backport-38197-branch/v13

Conversation

@zmb3
Copy link
Copy Markdown
Collaborator

@zmb3 zmb3 commented Feb 15, 2024

Backport #38197 to branch/v13

changelog: Fixed 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 enabled auto-merge February 15, 2024 23:27
@zmb3 zmb3 added this pull request to the merge queue Feb 15, 2024
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Feb 16, 2024
@zmb3 zmb3 added this pull request to the merge queue Feb 16, 2024
Merged via the queue into branch/v13 with commit dbdb966 Feb 16, 2024
@zmb3 zmb3 deleted the bot/backport-38197-branch/v13 branch February 16, 2024 03:24
@camscale camscale mentioned this pull request Feb 29, 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