Make sure matches is set

Fixes a nil issue introduced by 17943c7
unstable
James Lee 2012-05-22 12:47:20 -06:00
parent 0c1d736fbc
commit e97994fdde
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ module Net; module SSH; module Verifiers
def verify(arguments) def verify(arguments)
options = arguments[:session].options options = arguments[:session].options
host = options[:host_key_alias] || arguments[:session].host_as_string host = options[:host_key_alias] || arguments[:session].host_as_string
matches = []
if options[:config] if options[:config]
matches = Net::SSH::KnownHosts.search_for(host, arguments[:session].options) matches = Net::SSH::KnownHosts.search_for(host, arguments[:session].options)
end end