mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-01 21:52:02 +08:00
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