From 19c86733464e837b58a09c3f632effcc592bff13 Mon Sep 17 00:00:00 2001 From: Tod Beardsley Date: Fri, 4 Feb 2011 15:32:12 +0000 Subject: [PATCH] See #3655. Don't crash if there isn't an sname. :/ git-svn-id: file:///home/svn/framework3/trunk@11713 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/core/db.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/msf/core/db.rb b/lib/msf/core/db.rb index 2556d761b5..aec68c8da2 100644 --- a/lib/msf/core/db.rb +++ b/lib/msf/core/db.rb @@ -580,6 +580,7 @@ class DBManager # Do the same for a service if that's also included. if (opts[:port]) proto = nil + sname = nil case opts[:proto].to_s.downcase # Catch incorrect usages when 'tcp','udp' proto = opts[:proto]