Skip to content

Commit

Permalink
guard for unknown host
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartin-tech committed Feb 15, 2019
1 parent 32c0908 commit c6d8e17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/msf/core/rpc/v10/rpc_db.rb
Expand Up @@ -699,6 +699,7 @@ def rpc_analyze_host(xopts)
ret[:host] = []
opts = fix_options(xopts)
h = self.framework.db.get_host(opts)
return ret unless h
h_result = self.framework.analyze.host(h)
host_detail = {}
host_detail[:address] = h.address
Expand Down

0 comments on commit c6d8e17

Please sign in to comment.