Skip to content

Commit 440005d

Browse files
committed
1 parent f315eb4 commit 440005d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/rpc/v10/rpc_db.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ def rpc_get_service(xopts)
751751
conditions[:port] = opts[:port] if opts[:port]
752752
conditions[:name] = opts[:names] if opts[:names]
753753
sret = wspace.services.where(conditions).order("hosts.address, port")
754-
else
754+
elsif host
755755
sret = host.services
756756
end
757757
return ret if sret == nil

0 commit comments

Comments
 (0)