diff options
author | Florian Wininger <fw.centrale@gmail.com> | 2022-04-29 14:20:47 +0200 |
---|---|---|
committer | Florian Wininger <fw.centrale@gmail.com> | 2022-04-29 14:42:49 +0200 |
commit | 845503873ef050c8a7b78dbd4f1af2f96e8240fd (patch) | |
tree | d9e00293c08b19ab0f286406bb82789e0e55b184 | |
parent | 395f0cd4029c305c4591482a3e8f2a3bb25f6860 (diff) | |
download | net-ssh-845503873ef050c8a7b78dbd4f1af2f96e8240fd.tar.gz |
Fix #854 regression
-rw-r--r-- | lib/net/ssh/buffer.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/net/ssh/buffer.rb b/lib/net/ssh/buffer.rb index 58127b3..e5d12eb 100644 --- a/lib/net/ssh/buffer.rb +++ b/lib/net/ssh/buffer.rb @@ -284,11 +284,7 @@ module Net end key when /^ecdsa\-sha2\-(\w*)$/ - key = OpenSSL::PKey::EC.read_keyblob($1, self) - key.private_key = read_bignum - _key_comment = read_string - - key + OpenSSL::PKey::EC.read_keyblob($1, self) else raise Exception, "Cannot decode private key of type #{type}" end |