Dont set default workspace if theres no DB

GSoC/Meterpreter_Web_Console
James Barnett 2018-04-21 10:26:17 -05:00
parent c5c02512d6
commit 988063d377
No known key found for this signature in database
GPG Key ID: 647983861A4EC5EA
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ class Driver < Msf::Ui::Driver
print_warning("\t#{path}: #{error}")
end
end
framework.db.workspace = framework.db.default_workspace
framework.db.workspace = framework.db.default_workspace if framework.db && framework.db.active
framework.events.on_ui_start(Msf::Framework::Revision)