Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh: badmatch in ssh:daemon_replace_options/2 #9544

Open
alexandrejbr opened this issue Mar 5, 2025 · 0 comments
Open

ssh: badmatch in ssh:daemon_replace_options/2 #9544

alexandrejbr opened this issue Mar 5, 2025 · 0 comments
Assignees
Labels
bug Issue is reported as a bug team:PS Assigned to OTP team PS

Comments

@alexandrejbr
Copy link
Contributor

Describe the bug
ssh:daemon_replace_options/2 can crash if the daemon no longer exists.

To Reproduce

ssh:daemon_replace_options(self(), []).

Expected behavior
A crash should not happen but instead an error should be returned.

Affected versions
OTP-25, OTP-26, OTP-27 and OTP-28-RC1

@alexandrejbr alexandrejbr added the bug Issue is reported as a bug label Mar 5, 2025
alexandrejbr added a commit to alexandrejbr/otp that referenced this issue Mar 5, 2025
Return error instead of having a badmatch inside the
function implementation.

Fixes erlang#9544
@alexandrejbr alexandrejbr changed the title badmatch in ssh:daemon_replace_options/2 ssh: badmatch in ssh:daemon_replace_options/2 Mar 5, 2025
@u3s u3s added the team:PS Assigned to OTP team PS label Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug team:PS Assigned to OTP team PS
Projects
None yet
Development

No branches or pull requests

2 participants