* 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:
Vadim Kurland
2011-04-01 18:38:48 -07:00
parent 73bf6aaee5
commit b21a9b24ab
2 changed files with 7 additions and 3 deletions
+5
View File
@@ -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
+2 -3
View File
@@ -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.)