Skip to content

Commit e72d9bd

Browse files
author
Julio Auto
committed
Fix report_note handling incorrect protocol names
1 parent f081ede commit e72d9bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/db_manager/note.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def report_note(opts)
7777
sname = nil
7878
case opts[:proto].to_s.downcase # Catch incorrect usages
7979
when 'tcp','udp'
80-
proto = opts[:proto]
80+
proto = opts[:proto].to_s.downcase
8181
sname = opts[:sname] if opts[:sname]
8282
when 'dns','snmp','dhcp'
8383
proto = 'udp'
@@ -166,4 +166,4 @@ def report_note(opts)
166166
ret[:note] = note
167167
}
168168
end
169-
end
169+
end

0 commit comments

Comments
 (0)