On Sat, 2011-07-23 at 14:36 +0100, Steven Jan Springl wrote:

> The attached minimal config. produces the following messages:
> 
> Use of uninitialized value in string eq 
> at /usr/share/shorewall/Shorewall/Providers.pm line 1098.
> 
> Use of uninitialized value in string eq 
> at /usr/share/shorewall/Shorewall/Providers.pm line 1131.

Steven,

This one was easier. Patch attached.

Thanks,
-Tom
-- 
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________

diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm
index 8ed2d12..bf0dd38 100644
--- a/Shorewall/Perl/Shorewall/Chains.pm
+++ b/Shorewall/Perl/Shorewall/Chains.pm
@@ -715,8 +715,8 @@ sub clear_rule_target( $ ) {
     assert( reftype $ruleref );
 
     delete $ruleref->{jump};
-    delete $ruleref->{target};
     delete $ruleref->{targetopts};
+    $ruleref->{target} = '';
 
     1;
 }

Attachment: signature.asc
Description: This is a digitally signed message part

------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel

Reply via email to