mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-24 04:07:55 +01:00
see #2242 fix crash when ASA import was attempted into locked library
This commit is contained in:
parent
33bfd16c82
commit
07fb9a3bfc
@ -112,6 +112,8 @@ void IC_NetworkZonesPage::setNetworkZones()
|
||||
Firewall *fw =
|
||||
dynamic_cast<ImportFirewallConfigurationWizard*>(wizard())->getFirewall();
|
||||
|
||||
if (fw == NULL) return;
|
||||
|
||||
// read and configure network zones
|
||||
list<FWObject*> all_interfaces = fw->getByTypeDeep(Interface::TYPENAME);
|
||||
list<FWObject*>::iterator it;
|
||||
|
||||
@ -86,7 +86,12 @@ int IC_ProgressPage::nextId () const
|
||||
dynamic_cast<ImportFirewallConfigurationWizard*>(wizard())->
|
||||
getPlatform();
|
||||
|
||||
if (platform == "pix" || platform == "fwsm")
|
||||
Firewall *fw =
|
||||
dynamic_cast<ImportFirewallConfigurationWizard*>(wizard())->getFirewall();
|
||||
|
||||
// I can move on to the next page only if firewall object has been created
|
||||
// and the next page only makes sense for pix and fwsm
|
||||
if (fw && (platform == "pix" || platform == "fwsm"))
|
||||
return ImportFirewallConfigurationWizard::Page_NetworkZones;
|
||||
|
||||
return -1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user