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

Don't zero usesshagent #17682

Merged
merged 1 commit into from
Jul 29, 2016
Merged

Don't zero usesshagent #17682

merged 1 commit into from
Jul 29, 2016

Conversation

Keno
Copy link
Member

@Keno Keno commented Jul 28, 2016

usesshagent is just a flag to determine whether or not to use the agent, so
zeroing it isn't necessary. Even worse, since it only gets a reference to one
of the flag strings (stored in the AST), zeroing them globally changes those
strings, disabling ssh-agent authentication entirely.

Fixes the problem noted in #16041.

cc @stevengj

`usesshagent` is just a flag to determine whether or not to use the agent, so
zeroing it isn't necessary. Even worse, since it only gets a reference to one
of the flag strings (stored in the AST), zeroing them globally changes those
strings, disabling ssh-agent authentication entirely.

Fixes the problem noted in #16041
@tkelman tkelman added the needs tests Unit tests are required for this change label Jul 28, 2016
@tkelman
Copy link
Contributor

tkelman commented Jul 28, 2016

should be added to the "test this" list for #17651

@stevengj
Copy link
Member

Lgtm

@Keno
Copy link
Member Author

Keno commented Jul 28, 2016

That test does test this.

@tkelman tkelman removed the needs tests Unit tests are required for this change label Jul 28, 2016
@Keno Keno merged commit 905e2bd into master Jul 29, 2016
@tkelman tkelman deleted the kf/dontzerousesshagent branch July 29, 2016 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants