diff --git a/lib/rex/parser/nmap_xml.rb b/lib/rex/parser/nmap_xml.rb index cb83c89dc6..0ae80d73d6 100644 --- a/lib/rex/parser/nmap_xml.rb +++ b/lib/rex/parser/nmap_xml.rb @@ -70,7 +70,7 @@ class NmapXMLStreamParser when "service" # Store any service info with the associated port. There shouldn't # be any collisions on attribute names here, so just merge them. - @host["ports"].last.merge(attributes) + @host["ports"].last.merge!(attributes) end end