or something equivalent... if enum_dcs returns nil

unstable
Loic Jaquemet 2012-07-03 20:38:26 -03:00
parent c30b2de35b
commit 5bba81b738
1 changed files with 1 additions and 0 deletions

View File

@ -109,6 +109,7 @@ class Metasploit3 < Msf::Post
domains.each do |domain|
dcs = enum_dcs(domain)
dcs = [] if dcs.nil?
# Add registry cached DC for the test case where no DC is enumerated on the network.
if !cached_dc.nil? && (cached_dc.include? domain)