On 12/18/11 9:17 AM, Steven Jan Springl wrote:
> Notrack entry:
> 
> CT  lan:1.2.3.4  -  tcp  2121
> 
> Produces the following message:
> 
> Use of uninitialized value $option in string eq at 
> /usr/share/shorewall/Shorewall/Raw.pm line 72, <$currentfile> line 11.
>

The attached patch corrects the problem.

Thanks, Steven

-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/Raw.pm b/Shorewall/Perl/Shorewall/Raw.pm
index ead71fd..4f30670 100644
--- a/Shorewall/Perl/Shorewall/Raw.pm
+++ b/Shorewall/Perl/Shorewall/Raw.pm
@@ -65,6 +65,7 @@ sub process_notrack_rule( $$$$$$$ ) {
     unless ( $action eq 'NOTRACK' ) {
        (  $target, my ( $option, $args, $junk ) ) = split ':', $action, 4;
 
+       fatal_error "CT requires an action" unless supplied $option;
        fatal_error "Invalid notrack ACTION ( $action )" if $junk || $target ne 
'CT';
 
        require_capability 'CT_TARGET', 'CT entries in the notrack file', '';
------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel

Reply via email to