On 2/14/11 12:32 PM, Steven Jan Springl wrote:

> Accounting rules:
> 
> SECTION FORWARD
> ACCOUNT(net2lan,192.168.0.0/24)  reject
> 
> produces the following message:
> 
> Use of uninitialized value in bitwise or (|) 
> at /usr/share/shorewall/Shorewall/Accounting.pm line 278, <$currentfile> line 
> 21.

Good catch, Steven

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/Accounting.pm 
b/Shorewall/Perl/Shorewall/Accounting.pm
index eead516..be40a46 100644
--- a/Shorewall/Perl/Shorewall/Accounting.pm
+++ b/Shorewall/Perl/Shorewall/Accounting.pm
@@ -275,6 +275,7 @@ sub process_accounting_rule( ) {
        fatal_error "Adding an IPSEC rule into a non-IPSEC chain is not 
allowed" unless $dir;
        $rule .= do_ipsec( $dir , $ipsec );
     } elsif ( $asection ) {
+       fatal_error "$chain is not an accounting chain" unless 
$chainref->{accounting};
        $restriction |= $chainref->{restriction};
     }
 

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel

Reply via email to