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

[JENKINS-44120] Prevent NPE when using DH group 1 or 14 with SHA1 KEX #24

Merged
merged 1 commit into from May 17, 2017
Merged

[JENKINS-44120] Prevent NPE when using DH group 1 or 14 with SHA1 KEX #24

merged 1 commit into from May 17, 2017

Conversation

mc1arke
Copy link
Member

@mc1arke mc1arke commented May 17, 2017

Trilead currently tries to read a sub-field of the field it's trying to set whilst creating the Key Exchange Parameters for diffie-hellman-group1-sha1 and diffie-hellman-group14-sha1. This causes a NullPointerException as the field being read can only ever by null at this point. This PR modifies Trilead to use a hardcoded reference to SHA1 at this point since the algorithm can only ever be using SHA1 in this scenario.

@mc1arke mc1arke merged commit 8ddd97a into jenkinsci:master May 17, 2017
robberphex pushed a commit to robberphex/trilead-ssh2 that referenced this pull request Feb 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant