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

Fix broken reading of SSH public keys from a file #2919

Closed
wants to merge 1 commit into from

Conversation

nnposter
Copy link

Loading of SSH public keys from a file via libssh2.read_publickey() fails because the routine does not preserve balanced Lua stack across operations performed on a luaL_Buffer object. Moving the code around rectifies the issue.

A minuscule optimization added by replacing lua_pushstring with lua_pushliteral.

The PR will be committed after September 6, 2024, unless concerns are raised.

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.

1 participant