Skip to content

Commit

Permalink
Fix Converters::CSV.each_host_rows yielded value (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
AI-Mozi authored Apr 28, 2024
1 parent 60e13a5 commit 5ca241d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ronin/nmap/converters/csv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def self.xml_to_rows(xml)
yield HEADER

xml.each_host do |host|
each_host_rows(host) do |*row|
each_host_rows(host) do |row|
yield row
end
end
Expand All @@ -102,7 +102,7 @@ def self.each_host_rows(host)
]

host.each_port do |port|
yield(*host_row, *port_to_row(port))
yield(host_row + port_to_row(port))
end
end

Expand Down

0 comments on commit 5ca241d

Please sign in to comment.