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
unstable
Tod Beardsley 2011-02-04 15:32:12 +00:00
parent dda837a06c
commit 19c8673346
1 changed files with 1 additions and 0 deletions

View File

@ -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]