mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-14 00:49:09 +02:00
* FWObject.cpp (shallowDuplicate): see #2286 "Crash when closing
file". The GUI crashed if user imported iptables or pix configuration, then deleted a rule and tried to close project window.
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
2011-04-01 vadim <vadim@netcitadel.com>
|
||||
|
||||
* FWObject.cpp (shallowDuplicate): see #2286 "Crash when closing
|
||||
file". The GUI crashed if user imported iptables or pix
|
||||
configuration, then deleted a rule and tried to close project
|
||||
window.
|
||||
|
||||
* PIXImporter.cpp (mirrorServiceObjectRecursively): see #2291 The
|
||||
same service object-group that matches some tcp or udp ports can
|
||||
be used to match both source and destination ports in an
|
||||
|
||||
@@ -440,11 +440,10 @@ FWObject& FWObject::shallowDuplicate(const FWObject *x, bool preserve_id)
|
||||
|
||||
setReadOnly(false);
|
||||
|
||||
//if (getBool("ro")) setReadOnly(false);
|
||||
if (!preserve_id)
|
||||
{
|
||||
ref_counter = 0 ;
|
||||
xml_name = x->xml_name ;
|
||||
// ref_counter = 0 ;
|
||||
xml_name = x->xml_name;
|
||||
} else
|
||||
{
|
||||
// some objects do not have ID per DTD (e.g. Src, Dst, etc.)
|
||||
|
||||
Reference in New Issue
Block a user