lib/net/ssh/transport/key_expander.rb in net-ssh-6.3.0.beta1 vs lib/net/ssh/transport/key_expander.rb in net-ssh-7.0.0.beta1

- old
+ new

@@ -2,10 +2,10 @@ module SSH module Transport module KeyExpander # Generate a key value in accordance with the SSH2 specification. # (RFC4253 7.2. "Output from Key Exchange") - def self.expand_key(bytes, start, options={}) + def self.expand_key(bytes, start, options = {}) if bytes == 0 return "" end k = start[0, bytes]