From e97994fddeb420702c4f1d104b3340742c1744bf Mon Sep 17 00:00:00 2001 From: James Lee Date: Tue, 22 May 2012 12:47:20 -0600 Subject: [PATCH] Make sure matches is set Fixes a nil issue introduced by 17943c7 --- lib/net/ssh/verifiers/strict.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/net/ssh/verifiers/strict.rb b/lib/net/ssh/verifiers/strict.rb index 3580ab71a9..ed7e8abe03 100644 --- a/lib/net/ssh/verifiers/strict.rb +++ b/lib/net/ssh/verifiers/strict.rb @@ -13,6 +13,7 @@ module Net; module SSH; module Verifiers def verify(arguments) options = arguments[:session].options host = options[:host_key_alias] || arguments[:session].host_as_string + matches = [] if options[:config] matches = Net::SSH::KnownHosts.search_for(host, arguments[:session].options) end