diff --git a/lib/msf/core/db.rb b/lib/msf/core/db.rb index 32f5cbdd28..a9787fb17b 100644 --- a/lib/msf/core/db.rb +++ b/lib/msf/core/db.rb @@ -445,7 +445,7 @@ class DBManager wspace = opts[:workspace] || find_workspace(session.workspace) h_opts = { } h_opts[:host] = normalize_host(session) - h_opts[:arch] = session.arch if session.arch + h_opts[:arch] = session.arch if session.respond_to?(:arch) and session.arch h_opts[:workspace] = wspace host = find_or_create_host(h_opts) sess_data = {