Force the socket to close between each pass -- thanks quine!

git-svn-id: file:///home/svn/framework3/trunk@6435 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2009-03-29 17:58:15 +00:00
parent fad673fb35
commit 93bcddf469
1 changed files with 3 additions and 1 deletions

View File

@ -81,6 +81,8 @@ class Metasploit3 < Msf::Auxiliary
raise $!
rescue ::Exception => e
print_status("Unknown error: #{e.class} #{e}")
ensure
udp_sock.close if udp_sock
end
end
@ -126,7 +128,7 @@ class Metasploit3 < Msf::Auxiliary
:name => 'sip'
)
if(agent != 'Unknown')
if(not agent.empty?)
report_note(
:host => pkt[1],
:ntype => 'sip_useragent',