From 27b977f48e8677167bc5c029bb02cc64bb1edc77 Mon Sep 17 00:00:00 2001 From: Jonathan Claudius Date: Fri, 25 Aug 2017 14:58:28 -0400 Subject: [PATCH] Fix scoping issue with kex_exchange_init --- lib/ssh_scan/client.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ssh_scan/client.rb b/lib/ssh_scan/client.rb index 697d7be3..ac83c227 100644 --- a/lib/ssh_scan/client.rb +++ b/lib/ssh_scan/client.rb @@ -98,6 +98,8 @@ def get_kex_result(kex_init_raw = @kex_init_raw) return nil end + kex_exchange_init = nil + begin Timeout::timeout(@timeout) { @sock.write(kex_init_raw)