Fixing bug spotted by troulouliou in ipv6_neighbor

Just check for nilness, not the :symbol.
unstable
Tod Beardsley 2012-04-02 10:02:59 -05:00
parent ab269ac4ec
commit 7b0ee58d9f
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class Metasploit3 < Msf::Auxiliary
while (::Time.now.to_f < etime) while (::Time.now.to_f < etime)
while(adv = getadvertisement()) while(adv = getadvertisement())
next if not adv[:icmpv6] next if not adv
addr = map_neighbor(neighs, adv) addr = map_neighbor(neighs, adv)
next if not addr next if not addr