Fix NoMethodError when unable to connect

Derp.
bug/bundler_fix
James Lee 2014-10-21 08:58:45 -05:00
parent 3051b6c5ba
commit cb9a77c06b
No known key found for this signature in database
GPG Key ID: 2D6094C7CEA0A321
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ module Metasploit
rescue ::Rex::Proto::SMB::Exceptions::Error => e rescue ::Rex::Proto::SMB::Exceptions::Error => e
status = Metasploit::Model::Login::Status::INCORRECT status = Metasploit::Model::Login::Status::INCORRECT
proof = e proof = e
rescue ::Rex::ConnectionError rescue ::Rex::ConnectionError => e
status = Metasploit::Model::Login::Status::UNABLE_TO_CONNECT status = Metasploit::Model::Login::Status::UNABLE_TO_CONNECT
proof = e proof = e
end end