sshj icon indicating copy to clipboard operation
sshj copied to clipboard

Initializing OpenSSHKeyV1KeyFile does not use correct publicKey for null check

Open katjas opened this issue 1 year ago • 2 comments

Hi there, there is an issue in the init method of OpenSSHKeyV1KeyFile - it'0s checking the "pubKey" on null, instead of the "publicKey" which is passed to the method. Like this, the pubKey stays null always. Thanks for checking, Katja

https://github.com/hierynomus/sshj/blob/31ed35407cf04b1781119e7ee5a99c9157f3cd86/src/main/java/com/hierynomus/sshj/userauth/keyprovider/OpenSSHKeyV1KeyFile.java#L124

katjas avatar Sep 17 '24 06:09 katjas

In #944.

dkocher avatar Sep 17 '24 07:09 dkocher

Duplicate for #907.

dkocher avatar Sep 17 '24 07:09 dkocher